From: J William Piggott Date: Sun, 2 Jul 2017 00:05:56 +0000 (-0400) Subject: hwclock: usage() use program_invocation_short_name X-Git-Tag: v2.31-rc1~223 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57c45481fcd97b48ae956699d7c39a23d24bc298;p=thirdparty%2Futil-linux.git hwclock: usage() use program_invocation_short_name Signed-off-by: J William Piggott --- diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index f69e0108e2..f738a954dc 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 use an alternate file to %1$s\n"), _PATH_RTC_DEV);