]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: make clock test mode message consistent
authorJ William Piggott <elseifthen@gmx.com>
Wed, 19 Apr 2017 23:54:28 +0000 (19:54 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Thu, 27 Apr 2017 03:19:56 +0000 (23:19 -0400)
Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c

index 31ee8fed7a6811dc9be491c8774520b7d2f88394..4a187c5deda3bbe4119a4d2c7bb67fc11ce4973c 100644 (file)
@@ -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 };