summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2006-04-12 05:07:52 +0000
committerray <ray@openbsd.org>2006-04-12 05:07:52 +0000
commit17a67b713ea31176a60b40889e4bd4c0c138b3a8 (patch)
treebe5e86ede1c037f1e8b5402e56570a7b4d9a4b85
parentrevert the new superblock format. it violates the rule that new (diff)
downloadwireguard-openbsd-17a67b713ea31176a60b40889e4bd4c0c138b3a8.tar.xz
wireguard-openbsd-17a67b713ea31176a60b40889e4bd4c0c138b3a8.zip
Improve error message.
Found by Florin Iamandi <florin dot i at tiscali dot it>. OK tedu@ and deraadt@
-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();