summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/sbus.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-06-18 17:33:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-06-18 17:33:36 +0000
commitb16e59b21066b91a99919f2765eaca6a1bbda219 (patch)
tree7442211744c6f55de5aa8b16bbec1916aaab7744 /sys/arch/sparc64/dev/sbus.c
parent64930cfbda8f15550d6ed4625f820841d716c61d (diff)
When reporting unknown sbus hardware, also report the hardware class (audio,
block device...) if it advertizes one. ok deraadt@
Diffstat (limited to 'sys/arch/sparc64/dev/sbus.c')
-rw-r--r--sys/arch/sparc64/dev/sbus.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/sbus.c b/sys/arch/sparc64/dev/sbus.c
index c06e3760eba..6cddc5c68ce 100644
--- a/sys/arch/sparc64/dev/sbus.c
+++ b/sys/arch/sparc64/dev/sbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbus.c,v 1.18 2003/06/11 03:16:12 henric Exp $ */
+/* $OpenBSD: sbus.c,v 1.19 2003/06/18 17:33:35 miod Exp $ */
/* $NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp $ */
/*-
@@ -209,10 +209,15 @@ int
sbus_print(void *args, const char *busname)
{
struct sbus_attach_args *sa = args;
+ char *class;
int i;
- if (busname)
+ if (busname != NULL) {
printf("%s at %s", sa->sa_name, busname);
+ class = getpropstring(sa->sa_node, "device_type");
+ if (*class != '\0')
+ printf(" class %s", class);
+ }
printf(" slot %ld offset 0x%lx", (long)sa->sa_slot,
(u_long)sa->sa_offset);
for (i = 0; i < sa->sa_nintr; i++) {