]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: usage() use program_invocation_short_name
authorJ William Piggott <elseifthen@gmx.com>
Sun, 2 Jul 2017 00:05:56 +0000 (20:05 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Mon, 10 Jul 2017 20:02:08 +0000 (16:02 -0400)
Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c

index f69e0108e20b843cfb71e16d3997821219c7d27f..f738a954dccff39c0438b1544219fbd6d18e4115 100644 (file)
@@ -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);