summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-01-31 13:25:04 +0100
committerThomas Haller <thaller@redhat.com>2014-01-31 13:28:42 +0100
commit84ea5b6302a623e3fbf39cb75cba3d4b14730719 (patch)
tree1f6dff2db6d191b59eacfaecf48d84b5e047d4e0
parent5d6a5f85726aa9d6dded482e46d7166db1b55aa1 (diff)
downloadNetworkManager-84ea5b6302a623e3fbf39cb75cba3d4b14730719.tar.gz
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>
-rw-r--r--src/NetworkManagerUtils.c6
1 files 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);
}
}