Merge branch 'bugfix/ci_ut_esp_timer_isr_dispath_method_is_not_blocked' into 'master'

esp_timer: Fix Test ESP_TIMER_ISR dispatch method is not blocked

Closes IDFCI-470

See merge request espressif/esp-idf!12484
This commit is contained in:
Angus Gratton
2021-02-24 10:07:47 +00:00

View File

@@ -568,16 +568,16 @@ esp_err_t esp_timer_dump(FILE* stream)
timer_list_unlock(dispatch_method); timer_list_unlock(dispatch_method);
} }
fprintf(stream, "Timer stats:\n"); if (stream != NULL) {
fprintf(stream, "Timer stats:\n");
#if WITH_PROFILING #if WITH_PROFILING
fprintf(stream, "%-20s %-10s %-12s %-12s %-12s %-12s %-12s\n", fprintf(stream, "%-20s %-10s %-12s %-12s %-12s %-12s %-12s\n",
"Name", "Period", "Alarm", "Times_armed", "Times_trigg", "Times_skip", "Cb_exec_time"); "Name", "Period", "Alarm", "Times_armed", "Times_trigg", "Times_skip", "Cb_exec_time");
#else #else
fprintf(stream, "%-20s %-10s %-12s\n", "Name", "Period", "Alarm"); fprintf(stream, "%-20s %-10s %-12s\n", "Name", "Period", "Alarm");
#endif #endif
/* Print the buffer */ /* Print the buffer */
if (stream != NULL) {
fputs(print_buf, stream); fputs(print_buf, stream);
} }