mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user