Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_espcoredump_compilation_warning' into 'master'
Browse files Browse the repository at this point in the history
fix(espcoredump): fixed compilation warning

Closes IDFGH-11151

See merge request espressif/esp-idf!26395
  • Loading branch information
rahult-github committed Oct 20, 2023
2 parents 172f3a7 + d2e9314 commit e7e4782
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/espcoredump/src/core_dump_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,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);
Expand Down

0 comments on commit e7e4782

Please sign in to comment.