From be227c83af4b51a443a5662aeed7acb75305aae8 Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Thu, 28 Nov 2019 19:26:41 +0800 Subject: [PATCH] fix(newlib): fix abort function cause critical error --- components/newlib/newlib/port/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/newlib/newlib/port/syscall.c b/components/newlib/newlib/port/syscall.c index b71e52737..28651f4e5 100644 --- a/components/newlib/newlib/port/syscall.c +++ b/components/newlib/newlib/port/syscall.c @@ -110,7 +110,7 @@ void _exit(int status) void abort(void) { - ESP_LOGE("ABORT","Error found and abort!"); + ets_printf("abort() was called at PC %p on core %d\r\n", __builtin_return_address(0) - 3, xPortGetCoreID()); /* cause a exception to jump into panic function */ while (1) {