summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-11-30 21:38:02 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-11-30 21:38:02 +0000
commit600c98156b2f725d87259925571b5b3181ca37c2 (patch)
tree8b8f722db4a7bcea030829df792de5b229d8f260 /sys/arch
parent3ecb5f27b80ef367815b8da844a2a1b2912471d1 (diff)
zero confargs before device scan, less verbose printing for probed device
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/mainbus.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c
index e7115d75838..864efbe7b80 100644
--- a/sys/arch/hppa/hppa/mainbus.c
+++ b/sys/arch/hppa/hppa/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.1 1998/10/30 18:54:11 mickey Exp $ */
+/* $OpenBSD: mainbus.c,v 1.2 1998/11/30 21:38:01 mickey Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -80,10 +80,12 @@ mbattach(parent, self, aux)
printf("\n");
/* PDC first */
+ bzero (&nca, sizeof(nca));
nca.ca_name = "pdc";
nca.ca_mod = -1;
config_found(self, &nca, mbprint);
+ bzero (&nca, sizeof(nca));
nca.ca_name = "mainbus";
nca.ca_mod = -1;
pdc_scanbus(self, &nca, -1, MAXMODBUS);
@@ -99,11 +101,8 @@ mbprint(aux, pnp)
if (pnp)
printf("\"%s\" at %s (type %x, sv %x)", ca->ca_name, pnp,
ca->ca_type.iodc_type, ca->ca_type.iodc_sv_model);
- if (ca->ca_mod >= 0) {
+ if (ca->ca_mod >= 0)
printf(" mod %d", ca->ca_mod);
- if (!pnp)
- printf(" \"%s\"", ca->ca_name);
- }
return (UNCONF);
}