From feb3c24a40a8227ab1253ddbe9bac43f5aba7d9a Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 29 Sep 1997 23:17:00 +0000 Subject: better usage() --- sbin/fdisk/fdisk.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 93416d293e9..251311a97b1 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -1,5 +1,5 @@ -/* $OpenBSD: fdisk.c,v 1.21 1997/09/29 22:58:16 weingart Exp $ */ +/* $OpenBSD: fdisk.c,v 1.22 1997/09/29 23:16:59 mickey Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -48,12 +48,15 @@ void usage() { - fprintf(stderr, "usage: fdisk [-ie] [-f mbrboot] [-c cyl] [-h head] [-s sect] disk\n"); - fprintf(stderr, "\t-i: initialize disk with virgin MBR\n"); - fprintf(stderr, "\t-e: edit MBRs on disk interactively\n"); - fprintf(stderr, "\t-f: specify non-standard MBR template\n"); - fprintf(stderr, "\t-chs: specify disk geometry\n"); - fprintf(stderr, "`disk' may be of the forms: sd0 or /dev/rsd0c.\n"); + extern char * __progname; + fprintf(stderr, "usage: %s " + "[-ie] [-f mbrboot] [-c cyl] [-h head] [-s sect] disk\n" + "\t-i: initialize disk with virgin MBR\n" + "\t-e: edit MBRs on disk interactively\n" + "\t-f: specify non-standard MBR template\n" + "\t-chs: specify disk geometry\n" + "`disk' may be of the forms: sd0 or /dev/rsd0c.\n", + __progname); exit(1); } -- cgit v1.2.3