From: J William Piggott Date: Wed, 19 Apr 2017 23:54:28 +0000 (-0400) Subject: hwclock: make clock test mode message consistent X-Git-Tag: v2.30-rc1~77^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=142efd24061f2ba8a825c4d2368b6271b2d79c2f;p=thirdparty%2Futil-linux.git hwclock: make clock test mode message consistent Signed-off-by: J William Piggott --- diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 31ee8fed7a..4a187c5ded 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -391,7 +391,7 @@ set_hardware_clock(const struct hwclock_control *ctl, const time_t newtime) new_broken_time.tm_sec, (long)newtime); if (ctl->testing) - printf(_("Clock not changed - testing only.\n")); + printf(_("Test mode: clock was not changed\n")); else { ur->set_hardware_clock(ctl, &new_broken_time); } @@ -636,7 +636,7 @@ set_system_clock(const struct hwclock_control *ctl, const bool hclock_valid, } if (ctl->testing) { printf(_ - ("Not setting system clock because running in test mode.\n")); + ("Test mode: clock was not changed\n")); retcode = 0; } else { const struct timezone tz = { minuteswest, 0 }; @@ -724,7 +724,7 @@ static int set_system_clock_timezone(const struct hwclock_control *ctl) } if (ctl->testing) { printf(_ - ("Not setting system clock because running in test mode.\n")); + ("Test mode: clock was not changed\n")); retcode = 0; } else { const struct timezone tz_utc = { 0, 0 };