diff --git a/components/esp_event/esp_event.c b/components/esp_event/esp_event.c index 9358d910e23..88e0561bcfa 100644 --- a/components/esp_event/esp_event.c +++ b/components/esp_event/esp_event.c @@ -1097,7 +1097,7 @@ esp_err_t esp_event_dump(FILE* file) portEXIT_CRITICAL(&s_event_loops_spinlock); // Print the contents of the buffer to the file - fprintf(file, buf); + fprintf(file, "%s", buf); // Free the allocated buffer free(buf);