summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.c
diff options
context:
space:
mode:
authorJ William Piggott2017-07-02 02:05:56 +0200
committerJ William Piggott2017-07-10 22:02:08 +0200
commit57c45481fcd97b48ae956699d7c39a23d24bc298 (patch)
treee135c55dce7a331de1e91f45aa41127e0131bb09 /sys-utils/hwclock.c
parenthwclock: remove from usage() FILE *out = stdout (diff)
downloadkernel-qcow2-util-linux-57c45481fcd97b48ae956699d7c39a23d24bc298.tar.gz
kernel-qcow2-util-linux-57c45481fcd97b48ae956699d7c39a23d24bc298.tar.xz
kernel-qcow2-util-linux-57c45481fcd97b48ae956699d7c39a23d24bc298.zip
hwclock: usage() use program_invocation_short_name
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r--sys-utils/hwclock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index f69e0108e..f738a954d 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -1203,7 +1203,7 @@ static void __attribute__((__noreturn__))
usage(const struct hwclock_control *ctl)
{
fputs(USAGE_HEADER, stdout);
- puts(_(" hwclock [function] [option...]"));
+ printf(_(" %s [function] [option...]\n"), program_invocation_short_name);
fputs(USAGE_SEPARATOR, stdout);
puts(_("Query or set the RTC (Real Time Clock / Hardware Clock)"));
@@ -1222,8 +1222,8 @@ usage(const struct hwclock_control *ctl)
#endif
puts(_(" --predict predict the drifted RTC time according to --date"));
fputs(USAGE_OPTIONS, stdout);
- puts(_(" -u, --utc inform hwclock the RTC timescale is UTC"));
- puts(_(" -l, --localtime inform hwclock the RTC timescale is Local"));
+ puts(_(" -u, --utc the RTC timescale is UTC"));
+ puts(_(" -l, --localtime the RTC timescale is Local"));
#ifdef __linux__
printf(_(
" -f, --rtc <file> use an alternate file to %1$s\n"), _PATH_RTC_DEV);