From: J William Piggott Date: Sun, 15 Mar 2015 18:17:13 +0000 (-0400) Subject: hwclock: increase debug output precision X-Git-Tag: v2.27-rc1~341 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a36a9026ea1b50968a73ff0f74f71e962feab230;p=thirdparty%2Futil-linux.git 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 --- diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 52a7874c79..e8732b8bc4 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),