Skip to content

Commit afd919c

Browse files
committed
Merge branch 'bugfix/abort_log_error_v3.1' into 'release/v3.1'
newlib: fix abort function cause critical error (backport v3.1) See merge request sdk/ESP8266_RTOS_SDK!1202
2 parents 1f3a82e + be227c8 commit afd919c

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)