summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.c
diff options
context:
space:
mode:
authorJ William Piggott2015-03-15 19:17:13 +0100
committerJ William Piggott2015-03-17 15:17:26 +0100
commita36a9026ea1b50968a73ff0f74f71e962feab230 (patch)
tree782aa0a65e300d827d3258fe1c3b6ef8a5e97e41 /sys-utils/hwclock.c
parenttravis: add MAKE_CHECK_OPTS (diff)
downloadkernel-qcow2-util-linux-a36a9026ea1b50968a73ff0f74f71e962feab230.tar.gz
kernel-qcow2-util-linux-a36a9026ea1b50968a73ff0f74f71e962feab230.tar.xz
kernel-qcow2-util-linux-a36a9026ea1b50968a73ff0f74f71e962feab230.zip
hwclock: increase debug output precision
Increased the precision in debug output showing the clock drift and the time lapsed. Showing a clock drift of 0.0 while giving a value that the drift factor was adjusted by makes no sense. Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r--sys-utils/hwclock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index 52a7874c7..e8732b8bc 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -1062,8 +1062,8 @@ adjust_drift_factor(struct adjtime *adjtime_p,
drift_factor = 0;
} else {
if (debug)
- printf(_("Clock drifted %.1f seconds in the past "
- "%.1f seconds\nin spite of a drift factor of "
+ printf(_("Clock drifted %f seconds in the past "
+ "%f seconds\nin spite of a drift factor of "
"%f seconds/day.\n"
"Adjusting drift factor by %f seconds/day\n"),
time_diff(nowtime, hclocktime),