mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 04:50:07 +01:00
logging: print timestamp only with msec precision
This commit is contained in:
parent
24582b65e1
commit
4fb8cf35f4
1 changed files with 1 additions and 1 deletions
|
|
@ -535,7 +535,7 @@ _nm_log_impl (const char *file,
|
|||
|
||||
if (NM_FLAGS_ANY (global.log_format_flags, global.level_desc[level].log_format_level & _LOG_FORMAT_FLAG_TIMESTAMP)) {
|
||||
g_get_current_time (&tv);
|
||||
nm_sprintf_buf (s_buf_timestamp, " [%ld.%06ld]", tv.tv_sec, tv.tv_usec);
|
||||
nm_sprintf_buf (s_buf_timestamp, " [%ld.%04ld]", tv.tv_sec, (tv.tv_usec + 50) / 100);
|
||||
} else
|
||||
s_buf_timestamp[0] = '\0';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue