From cfb5dd86c91018cd15533a9370b2d6fec08084af Mon Sep 17 00:00:00 2001 From: Igor Sobrado Date: Wed, 21 Oct 2009 15:08:24 +0000 Subject: sort options; synchronize argument names with synopsis; split the usage's output in two lines to fit on standard displays. ok millert@ --- usr.bin/kdump/kdump.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.bin') 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 @@ -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); } -- cgit v1.2.3