Skip to content

Commit be227c8

Browse files
committed
fix(newlib): fix abort function cause critical error
1 parent 1f3a82e commit be227c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/newlib/newlib/port/syscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void _exit(int status)
110110

111111
void abort(void)
112112
{
113-
ESP_LOGE("ABORT","Error found and abort!");
113+
ets_printf("abort() was called at PC %p on core %d\r\n", __builtin_return_address(0) - 3, xPortGetCoreID());
114114

115115
/* cause a exception to jump into panic function */
116116
while (1) {

0 commit comments

Comments
 (0)