From 1c590502092dfe43fad31692465f529f5aac8238 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 18 Aug 2021 13:22:56 +0200 Subject: [PATCH] panic/memprot: Fix minor const string correction on panic print --- components/esp_system/port/panic_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_system/port/panic_handler.c b/components/esp_system/port/panic_handler.c index 06f694f0d5..b828f0fc27 100644 --- a/components/esp_system/port/panic_handler.c +++ b/components/esp_system/port/panic_handler.c @@ -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(); 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 ) { operation_type = (mem_type == MEMPROT_IRAM0 && op_subtype == 0) ? "Instruction fetch" : "Read"; }