mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 00:40:19 +01:00
core: minor change of logging output about monotonic_timestamp
Make it more clear, what the current monotonic_timestamp is and what's it's offset to CLOCK_BOOTTIME. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
5d6a5f8572
commit
84ea5b6302
1 changed files with 3 additions and 3 deletions
|
|
@ -792,9 +792,9 @@ monotonic_timestamp_get (struct timespec *tp)
|
|||
char s[255];
|
||||
|
||||
strftime (s, sizeof (s), "%Y-%m-%d %H:%M:%S", localtime_r (&now, &tm));
|
||||
nm_log_dbg (LOGD_CORE, "monotonic timestamp starts counting with 1.%09ld seconds at "
|
||||
"CLOCK_BOOTTIME=%lld.%09ld (local time is %s)",
|
||||
tp->tv_nsec, (long long)tp->tv_sec, tp->tv_nsec, s);
|
||||
nm_log_dbg (LOGD_CORE, "monotonic timestamp started counting 1.%09ld seconds ago with "
|
||||
"an offset of %lld.0 seconds to CLOCK_BOOTTIME (local time is %s)",
|
||||
tp->tv_nsec, (long long) -monotonic_timestamp_offset_sec, s);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue