kopia lustrzana https://github.com/espressif/esp-idf
fix(espcoredump): fixed compilation warning
Added conditional compilation for logging stack usage only when CONFIG_ESP_COREDUMP_LOGS is enabled. Closes: https://github.com/espressif/esp-idf/issues/12318pull/9151/merge
rodzic
01796f3386
commit
b080931067
|
@ -112,9 +112,11 @@ FORCE_INLINE_ATTR uint32_t esp_core_dump_free_stack_space(const uint8_t *pucStac
|
|||
*/
|
||||
FORCE_INLINE_ATTR void esp_core_dump_report_stack_usage(void)
|
||||
{
|
||||
#if CONFIG_ESP_COREDUMP_LOGS
|
||||
uint32_t bytes_free = esp_core_dump_free_stack_space(s_coredump_stack);
|
||||
ESP_COREDUMP_LOGI("Core dump used %u bytes on stack. %u bytes left free.",
|
||||
s_core_dump_sp - s_coredump_stack - bytes_free, bytes_free);
|
||||
#endif
|
||||
|
||||
/* Restore the stack pointer. */
|
||||
ESP_COREDUMP_LOGI("Restoring stack @ %p", s_stack_context.sp);
|
||||
|
|
Ładowanie…
Reference in New Issue