From a36a9026ea1b50968a73ff0f74f71e962feab230 Mon Sep 17 00:00:00 2001 From: J William Piggott Date: Sun, 15 Mar 2015 14:17:13 -0400 Subject: 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 --- sys-utils/hwclock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-utils/hwclock.c') 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), -- cgit v1.2.3-55-g7522