summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.c
diff options
context:
space:
mode:
authorJ William Piggott2017-09-21 00:54:35 +0200
committerJ William Piggott2017-09-21 20:53:43 +0200
commitf0a0ce744573bc3b3164062bc25e8fc6ddc7d9b9 (patch)
treeb293c946d97074cda88ec85f4bd8a68a15f3511c /sys-utils/hwclock.c
parenthwclock: exit bug fix and single test mode message (diff)
downloadkernel-qcow2-util-linux-f0a0ce744573bc3b3164062bc25e8fc6ddc7d9b9.tar.gz
kernel-qcow2-util-linux-f0a0ce744573bc3b3164062bc25e8fc6ddc7d9b9.tar.xz
kernel-qcow2-util-linux-f0a0ce744573bc3b3164062bc25e8fc6ddc7d9b9.zip
hwclock: make debug implicit for test mode.
Calling --test without --debug is not useful, so make it implicit. Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r--sys-utils/hwclock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index 6a23bf2b0..36b6204b0 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -1083,7 +1083,7 @@ usage(void)
" --noadjfile do not use %1$s\n"), _PATH_ADJTIME);
printf(_(
" --adjfile <file> use an alternate file to %1$s\n"), _PATH_ADJTIME);
- puts(_(" --test dry run; use -D to view what would have happened"));
+ puts(_(" --test dry run; implies --debug"));
puts(_(" -D, --debug display more details"));
fputs(USAGE_SEPARATOR, stdout);
printf(USAGE_HELP_OPTIONS(22));
@@ -1251,6 +1251,7 @@ int main(int argc, char **argv)
break;
case OPT_TEST:
ctl.testing = 1; /* --test */
+ ctl.debug++;
break;
case OPT_DATE:
ctl.date_opt = optarg; /* --date */