From dd1de2121646e0c2cce67e4c0df5b655610ddd92 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 18 Aug 2021 12:59:15 +0200 Subject: [PATCH] panic/memprot: Fix minor const string correction on panic print --- components/esp_system/port/arch/xtensa/panic_arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_system/port/arch/xtensa/panic_arch.c b/components/esp_system/port/arch/xtensa/panic_arch.c index 9576eb8855..a61753c7ed 100644 --- a/components/esp_system/port/arch/xtensa/panic_arch.c +++ b/components/esp_system/port/arch/xtensa/panic_arch.c @@ -273,7 +273,7 @@ static inline void print_memprot_err_details(const void *f) mem_type_prot_t mem_type = esp_memprot_get_active_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_SRAM && op_subtype == 0) ? "Instruction fetch" : "Read"; }