From 0d0d9277dbac6ad7a18b299dfe9af4f4dfbc301d Mon Sep 17 00:00:00 2001 From: Alex Stewart Date: Sun, 20 Sep 2015 14:09:30 -0700 Subject: [PATCH] Fix format strings in app_main.c --- core/app_main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/app_main.c b/core/app_main.c index 1989234..88ac743 100644 --- a/core/app_main.c +++ b/core/app_main.c @@ -270,12 +270,12 @@ void IRAM vApplicationStackOverflowHook(xTaskHandle task, char *task_name) { // .text+0x3d8 void IRAM vApplicationIdleHook(void) { - printf("idle %lu\n", WDEV.SYS_TIME); + printf("idle %u\n", WDEV.SYS_TIME); } // .text+0x404 void IRAM vApplicationTickHook(void) { - printf("tick %lu\n", WDEV.SYS_TIME); + printf("tick %u\n", WDEV.SYS_TIME); } // .Lfunc005 -- .irom0.text+0x8 @@ -360,12 +360,12 @@ static void dump_excinfo(void) { RSR(excvaddr, excvaddr); RSR(depc, depc); RSR(excsave1, excsave1); - printf("%s=0x%08lx\n", "epc1", epc1); - printf("%s=0x%08lx\n", "epc2", epc2); - printf("%s=0x%08lx\n", "epc3", epc3); - printf("%s=0x%08lx\n", "excvaddr", excvaddr); - printf("%s=0x%08lx\n", "depc", depc); - printf("%s=0x%08lx\n", "excsave1", excsave1); + printf("%s=0x%08x\n", "epc1", epc1); + printf("%s=0x%08x\n", "epc2", epc2); + printf("%s=0x%08x\n", "epc3", epc3); + printf("%s=0x%08x\n", "excvaddr", excvaddr); + printf("%s=0x%08x\n", "depc", depc); + printf("%s=0x%08x\n", "excsave1", excsave1); sdk_system_rtc_mem_read(0, excinfo, 32); // Why? excinfo[0] = 2; excinfo[1] = exccause;