Sfoglia il codice sorgente

fix: vApplicationStackOverflowHook打印的参数类型与格式化字符串对不上

Wendal Chen 1 anno fa
parent
commit
fd1530af84
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/os/rtos/source/tasks.c

+ 1 - 1
src/os/rtos/source/tasks.c

@@ -5521,7 +5521,7 @@ static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait,
 #if ( configCHECK_FOR_STACK_OVERFLOW == 1 )
 void vApplicationStackOverflowHook( TaskHandle_t xTask,  char * pcTaskName )
 {
-	printf("\ntask[%s] priority[%d] stack over flow\n",pcTaskName, configMAX_PRIORITIES - (int)(xTask->uxPriority));
+	printf("\ntask[%s] priority[%d] %p %p stack over flow\n",pcTaskName, configMAX_PRIORITIES - (int)(xTask->uxPriority), xTask->pxTopOfStack, xTask->pxStack);
     for(;;);
 }
 #endif /* if ( configCHECK_FOR_STACK_OVERFLOW == 1 )*/