summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pciconf
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-08-23 12:59:03 +0000
committerpeter <peter@FreeBSD.org>1999-08-23 12:59:03 +0000
commitc4539c4f54d6750482a52e21bbbe246af237f754 (patch)
tree8c0000a49a236963951b62bda55465d3f1eaf995 /usr.sbin/pciconf
parent4e369feab62f83319ee5744bf3c6c50fcc39560a (diff)
downloadFreeBSD-src-c4539c4f54d6750482a52e21bbbe246af237f754.zip
FreeBSD-src-c4539c4f54d6750482a52e21bbbe246af237f754.tar.gz
Fix a few problems on the Alpha, and fix -Wall while here.
Before: isab0@pci0:8:0: class=0x060100 card=0x00000000 chip=0xffffffffc6931080 ... After: isab0@pci0:8:0: class=0x060100 card=0x00000000 chip=0xc6931080 ...
Diffstat (limited to 'usr.sbin/pciconf')
-rw-r--r--usr.sbin/pciconf/pciconf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c
index 1d7954d..f9cfe93 100644
--- a/usr.sbin/pciconf/pciconf.c
+++ b/usr.sbin/pciconf/pciconf.c
@@ -29,7 +29,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: pciconf.c,v 1.6 1998/09/15 08:21:13 gibbs Exp $";
+ "$Id: pciconf.c,v 1.7 1998/11/12 00:22:30 ken Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -51,7 +51,7 @@ static void readit(const char *, const char *, int);
static void writeit(const char *, const char *, const char *, int);
static void chkattached(const char *, int);
-static exitstatus = 0;
+static int exitstatus = 0;
static void
usage()
@@ -169,11 +169,11 @@ list_devs(void)
}
for (p = conf; p < &conf[pc.num_matches]; p++) {
- printf("%s%d@pci%d:%d:%d:\tclass=0x%06x card=0x%08lx "
- "chip=0x%08lx rev=0x%02x hdr=0x%02x\n",
+ printf("%s%d@pci%d:%d:%d:\tclass=0x%06x card=0x%08x "
+ "chip=0x%08x rev=0x%02x hdr=0x%02x\n",
(p->pd_name && *p->pd_name) ? p->pd_name :
"none",
- (p->pd_name && *p->pd_name) ? p->pd_unit :
+ (p->pd_name && *p->pd_name) ? (int)p->pd_unit :
none_count++,
p->pc_sel.pc_bus, p->pc_sel.pc_dev,
p->pc_sel.pc_func, (p->pc_class << 16) |
OpenPOWER on IntegriCloud