mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
libnm: fix timestamp in LIBNM_CLIENT_DEBUG debug logging
Fixes: 9c01d6ca67
('libnm: print timestamp in LIBNM_CLIENT_DEBUG debug logging')
This commit is contained in:
parent
ea85f6dfa3
commit
287a34990a
|
@ -99,14 +99,14 @@ _nml_dbus_log(NMLDBusLogLevel level, gboolean use_stdout, const char *fmt, ...)
|
|||
(long long) pid,
|
||||
prefix,
|
||||
ts / NM_UTILS_NSEC_PER_SEC,
|
||||
(ts / (NM_UTILS_NSEC_PER_SEC / 10000)) % 10000,
|
||||
(ts / (NM_UTILS_NSEC_PER_SEC / 100000)) % 100000,
|
||||
msg);
|
||||
} else {
|
||||
g_printerr("libnm-dbus[%lld]: %s[%" G_GINT64_FORMAT ".%05" G_GINT64_FORMAT "] %s\n",
|
||||
(long long) pid,
|
||||
prefix,
|
||||
ts / NM_UTILS_NSEC_PER_SEC,
|
||||
(ts / (NM_UTILS_NSEC_PER_SEC / 10000)) % 10000,
|
||||
(ts / (NM_UTILS_NSEC_PER_SEC / 100000)) % 100000,
|
||||
msg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue