From 2a8bbda6e4fe9596721bc58621ee05cb58ad0c22 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Mon, 6 Mar 2023 14:10:32 +0100 Subject: [PATCH] console: Fix and re-enable no-format warnings --- components/console/CMakeLists.txt | 3 --- components/console/esp_console_repl.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/components/console/CMakeLists.txt b/components/console/CMakeLists.txt index 3c699c90e3..b7789795f8 100644 --- a/components/console/CMakeLists.txt +++ b/components/console/CMakeLists.txt @@ -22,6 +22,3 @@ idf_component_register(SRCS "commands.c" INCLUDE_DIRS "." REQUIRES vfs PRIV_REQUIRES driver) - - -target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/console/esp_console_repl.c b/components/console/esp_console_repl.c index cb60df5452..f656cee91f 100644 --- a/components/console/esp_console_repl.c +++ b/components/console/esp_console_repl.c @@ -355,7 +355,7 @@ static esp_err_t esp_console_setup_history(const char *history_path, uint32_t ma /* Set command history size */ if (linenoiseHistorySetMaxLen(max_history_len) != 1) { - ESP_LOGE(TAG, "set max history length to %d failed", max_history_len); + ESP_LOGE(TAG, "set max history length to %"PRIu32" failed", max_history_len); ret = ESP_FAIL; goto _exit; }