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.
This commit is contained in:
Konstantin Kondrashov
2026-07-20 17:14:18 +03:00
parent 3b11b2d810
commit e4a2cf57e5
+1 -1
View File
@@ -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,