summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorgene <gene@cvs.openbsd.org>1997-04-24 02:10:16 +0000
committergene <gene@cvs.openbsd.org>1997-04-24 02:10:16 +0000
commit9a362e9da64270f91439c4b66e811834fb091019 (patch)
tree87515b71925d33420f9ca4f55cee1eb2c2304ebf /sys/arch
parent7ef9074aa6565823fae54dbce57d77748f322671 (diff)
Followingthe Scott Reynolds gravy train, very minor:
>#ifdef DIAGNOSTIC, print the NuBus type fields for unrecognized boards.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mac68k/dev/nubus.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/arch/mac68k/dev/nubus.c b/sys/arch/mac68k/dev/nubus.c
index 52b89222806..8a10045ac9e 100644
--- a/sys/arch/mac68k/dev/nubus.c
+++ b/sys/arch/mac68k/dev/nubus.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: nubus.c,v 1.11 1997/04/23 13:38:35 briggs Exp $ */
-/* $NetBSD: nubus.c,v 1.32 1997/02/28 07:54:02 scottr Exp $ */
+/* $OpenBSD: nubus.c,v 1.12 1997/04/24 02:10:15 gene Exp $ */
+/* $NetBSD: nubus.c,v 1.35 1997/04/22 20:20:32 scottr Exp $ */
/*
* Copyright (c) 1995, 1996 Allen Briggs. All rights reserved.
@@ -232,12 +232,16 @@ nubus_print(aux, name)
struct nubus_attach_args *na = (struct nubus_attach_args *) aux;
if (name) {
- printf("%s: slot %x: %s ", name, na->fmt->slot,
+ printf("%s: slot %x: %s", name, na->fmt->slot,
nubus_get_card_name(na->fmt));
- printf("(Vendor: %s, ",
+ printf(" (Vendor: %s,",
nubus_get_vendor(na->fmt, NUBUS_RSRC_VEND_ID));
- printf("Part: %s)",
+ printf(" Part: %s",
nubus_get_vendor(na->fmt, NUBUS_RSRC_VEND_PART));
+#ifdef DIAGNOSTIC
+ printf(" Type: %04x %04x %04x %04x",
+ na->category, na->type, na->drsw, na->drhw);
+#endif
}
return (UNCONF);
}