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:
Thomas Haller 2022-07-04 13:48:59 +02:00
parent ea85f6dfa3
commit 287a34990a
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);
}
}