From d59ed8bba02316213fc69d7b89b22ee0ef824362 Mon Sep 17 00:00:00 2001 From: Michael Balzer Date: Sun, 8 Nov 2020 11:24:40 +0100 Subject: [PATCH] log: fix timestamp output type --- components/log/include/esp_log.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/log/include/esp_log.h b/components/log/include/esp_log.h index 8616c5610..af51f6257 100644 --- a/components/log/include/esp_log.h +++ b/components/log/include/esp_log.h @@ -163,15 +163,15 @@ void esp_log_writev(esp_log_level_t level, const char* tag, const char* format, /** * @brief Dump a buffer to the log at specified level. - * + * * The dump log shows just like the one below: - * + * * W (195) log_example: 0x3ffb4280 45 53 50 33 32 20 69 73 20 67 72 65 61 74 2c 20 |ESP32 is great, | * W (195) log_example: 0x3ffb4290 77 6f 72 6b 69 6e 67 20 61 6c 6f 6e 67 20 77 69 |working along wi| * W (205) log_example: 0x3ffb42a0 74 68 20 74 68 65 20 49 44 46 2e 00 |th the IDF..| - * + * * It is highly recommend to use terminals with over 102 text width. - * + * * @param tag description tag * @param buffer Pointer to the buffer array * @param buff_len length of buffer in bytes @@ -250,7 +250,7 @@ void esp_log_writev(esp_log_level_t level, const char* tag, const char* format, #define LOG_RESET_COLOR #endif //CONFIG_LOG_COLORS -#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n" +#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%u) %s: " format LOG_RESET_COLOR "\n" /** @endcond */ @@ -296,7 +296,7 @@ void esp_log_writev(esp_log_level_t level, const char* tag, const char* format, #endif // BOOTLOADER_BUILD /** runtime macro to output logs at a specified level. - * + * * @param tag tag of the log, which can be used to change the log level by ``esp_log_level_set`` at runtime. * @param level level of the output log. * @param format format of the output log. see ``printf``