From 84ea5b6302a623e3fbf39cb75cba3d4b14730719 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 31 Jan 2014 13:25:04 +0100 Subject: [PATCH] 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 --- src/NetworkManagerUtils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c index 8d646d3506..241d2ddf4f 100644 --- a/src/NetworkManagerUtils.c +++ b/src/NetworkManagerUtils.c @@ -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); } }