From e4a2cf57e5a5d815f74c799db5bd8fd189f76be2 Mon Sep 17 00:00:00 2001 From: Konstantin Kondrashov Date: Mon, 20 Jul 2026 17:14:18 +0300 Subject: [PATCH] fix(log): use unsigned format specifier for esp_log_system_timestamp msec Use the unsigned format specifier to match the millisecond value type. This avoids format warnings under stricter compiler diagnostics. --- components/log/src/log_timestamp_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/log/src/log_timestamp_common.c b/components/log/src/log_timestamp_common.c index 932877aa456..7b83bcbc946 100644 --- a/components/log/src/log_timestamp_common.c +++ b/components/log/src/log_timestamp_common.c @@ -52,7 +52,7 @@ char *esp_log_system_timestamp(void) _lock_acquire(&bufferLock); unsigned msec = tv.tv_usec / 1000; snprintf(buffer, sizeof(buffer), - "%02d:%02d:%02d.%03d", + "%02d:%02d:%02d.%03u", timeinfo.tm_hour, timeinfo.tm_min, timeinfo.tm_sec,