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:
Thomas Haller
2014-01-31 13:25:04 +01:00
parent 5d6a5f8572
commit 84ea5b6302

View File

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