Skip to content

Commit

Permalink
fix(newlib): fix abort function cause critical error
Browse files Browse the repository at this point in the history
  • Loading branch information
donghengqaz committed Nov 29, 2019
1 parent 1f3a82e commit be227c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/newlib/newlib/port/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit be227c8

Please sign in to comment.