system: fix printf format errors in all system and cxx examples

This commit is contained in:
Marius Vikhammer
2022-12-09 15:04:55 +08:00
parent f7d6f83c41
commit 55879e36ab
39 changed files with 68 additions and 73 deletions
@@ -1,3 +1,2 @@
idf_component_register(SRCS "sysview_tracing.c"
INCLUDE_DIRS ".")
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <inttypes.h>
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
@@ -126,7 +127,7 @@ static void example_task(void *p)
SYSVIEW_EXAMPLE_WAIT_EVENT_START();
xTaskNotifyWait(0, 0, &event_val, portMAX_DELAY);
SYSVIEW_EXAMPLE_WAIT_EVENT_END(event_val);
ESP_LOGI(TAG, "Task[%p]: received event %d", xTaskGetCurrentTaskHandle(), event_val);
ESP_LOGI(TAG, "Task[%p]: received event %"PRIu32, xTaskGetCurrentTaskHandle(), event_val);
}
}