mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
panic/memprot: Fix minor const string correction on panic print
This commit is contained in:
@@ -372,7 +372,7 @@ static inline void print_memprot_err_details(const void *f)
|
|||||||
mem_type_prot_t mem_type = esp_memprot_get_intr_memtype();
|
mem_type_prot_t mem_type = esp_memprot_get_intr_memtype();
|
||||||
esp_memprot_get_fault_status( mem_type, &fault_addr, &op_type, &op_subtype );
|
esp_memprot_get_fault_status( mem_type, &fault_addr, &op_type, &op_subtype );
|
||||||
|
|
||||||
char *operation_type = "Write";
|
const char *operation_type = "Write";
|
||||||
if ( op_type == 0 ) {
|
if ( op_type == 0 ) {
|
||||||
operation_type = (mem_type == MEMPROT_IRAM0 && op_subtype == 0) ? "Instruction fetch" : "Read";
|
operation_type = (mem_type == MEMPROT_IRAM0 && op_subtype == 0) ? "Instruction fetch" : "Read";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user