diff options
author | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-10-21 15:08:24 +0000 |
---|---|---|
committer | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-10-21 15:08:24 +0000 |
commit | cfb5dd86c91018cd15533a9370b2d6fec08084af (patch) | |
tree | 1eed3d3e25102851f03ecba379d2a2ff44941f52 /usr.bin | |
parent | dfa894e9cb2b8baca953c023a53b0aad371c3132 (diff) |
sort options; synchronize argument names with synopsis;
split the usage's output in two lines to fit on standard displays.
ok millert@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/kdump/kdump.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 602ce71b63b..95618efaca2 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.39 2007/05/29 02:01:03 deraadt Exp $ */ +/* $OpenBSD: kdump.c,v 1.40 2009/10/21 15:08:23 sobrado Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; #endif -static const char rcsid[] = "$OpenBSD: kdump.c,v 1.39 2007/05/29 02:01:03 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: kdump.c,v 1.40 2009/10/21 15:08:23 sobrado Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -654,8 +654,9 @@ usage(void) extern char *__progname; fprintf(stderr, "usage: %s " - "[-dlnRTXx] [-e emulation] [-p pid] [-f trfile] [-m maxdata] " - "[-t [ceinsw]]\n", __progname); + "[-dlnRTXx] [-e emulation] [-f file] [-m maxdata] [-p pid]\n" + "%*s[-t [ceinsw]]\n", + __progname, sizeof("usage: ") + strlen(__progname), ""); exit(1); } |