summaryrefslogtreecommitdiffstats
path: root/sbin/reboot/reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/reboot/reboot.c')
-rw-r--r--sbin/reboot/reboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index 195c094..6923640 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -205,8 +205,8 @@ restart:
static void
usage()
{
- (void)fprintf(stderr, "usage: %s [-dnpq] [-k kernel]\n",
- dohalt ? "halt" : "reboot");
+ (void)fprintf(stderr, "usage: %s [-%slnpq] [-k kernel]\n",
+ getprogname(), dohalt ? "" : "d");
exit(1);
}
OpenPOWER on IntegriCloud