diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-05-20 01:25:25 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-05-20 01:25:25 +0000 |
commit | 597da3199199b14e2722a1ada9fccb3737814d7f (patch) | |
tree | b475f359033bb4063109bd5404e3d5a943578b0d /usr.sbin/pcidump | |
parent | f45d4774a3a08f1a090fecf301051d4c28ec94f6 (diff) |
Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr.
ok jsing@ krw@ millert@
Diffstat (limited to 'usr.sbin/pcidump')
-rw-r--r-- | usr.sbin/pcidump/pcidump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c index 3e601011d62..065d2cf9402 100644 --- a/usr.sbin/pcidump/pcidump.c +++ b/usr.sbin/pcidump/pcidump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcidump.c,v 1.35 2013/11/12 19:48:53 deraadt Exp $ */ +/* $OpenBSD: pcidump.c,v 1.36 2014/05/20 01:25:24 guenther Exp $ */ /* * Copyright (c) 2006, 2007 David Gwynne <loki@animata.net> @@ -184,7 +184,7 @@ main(int argc, char *argv[]) error = probe(bus, dev, func); if (error != 0) - errx(1, "\"%s\": %s", argv[0], strerror(error)); + errc(1, error, "\"%s\"", argv[0]); } else { printf("Domain %s:\n", pcidev); scanpcidomain(); |