summaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-04-12 05:07:53 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-04-12 05:07:53 +0000
commit849e97fe9aacafc329adaf6628477d26121e747c (patch)
tree4c3d45b775a9b751b6a28f54f6a0b83b111e31d0 /usr.bin/systat
parenta1bfd55dab8334da77d8b539961b9238311eba77 (diff)
Improve error message.
Found by Florin Iamandi <florin dot i at tiscali dot it>. OK tedu@ and deraadt@
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c
index 753175be9cc..62b79f46383 100644
--- a/usr.bin/systat/main.c
+++ b/usr.bin/systat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.32 2006/03/31 04:10:59 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.33 2006/04/12 05:07:52 ray Exp $ */
/* $NetBSD: main.c,v 1.8 1996/05/10 23:16:36 thorpej Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: main.c,v 1.32 2006/03/31 04:10:59 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.33 2006/04/12 05:07:52 ray Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -104,7 +104,7 @@ main(int argc, char *argv[])
case 'w':
naptime = (u_int)strtonum(optarg, 0, 1000, &errstr);
if (errstr)
- errx(1, "interval <= 0: %s", errstr);
+ errx(1, "interval %s: %s", errstr, optarg);
break;
default:
usage();