Skip to content

Commit

Permalink
Merge branch 'bugfix/abort_log_error_v3.1' into 'release/v3.1'
Browse files Browse the repository at this point in the history
newlib: fix abort function cause critical error (backport v3.1)

See merge request sdk/ESP8266_RTOS_SDK!1202
  • Loading branch information
donghengqaz committed Dec 2, 2019
2 parents 1f3a82e + be227c8 commit afd919c
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 afd919c

Please sign in to comment.