summaryrefslogtreecommitdiff
path: root/sys/dev/isa/wbsio.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-04-08 18:48:44 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-04-08 18:48:44 +0000
commit1eb877f8440235d67de422d66593519c68e7ebd8 (patch)
treeca4cbb0448e311af14f9df73d396531da6738184 /sys/dev/isa/wbsio.c
parent455ea90042405677806696430f316505d1460963 (diff)
Fix dmesg printing in the case that no device attaches.
ok miod@, deraadt@
Diffstat (limited to 'sys/dev/isa/wbsio.c')
-rw-r--r--sys/dev/isa/wbsio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isa/wbsio.c b/sys/dev/isa/wbsio.c
index 8e4b7110f4b..3a12ac2caab 100644
--- a/sys/dev/isa/wbsio.c
+++ b/sys/dev/isa/wbsio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wbsio.c,v 1.3 2008/04/07 18:45:26 kettenis Exp $ */
+/* $OpenBSD: wbsio.c,v 1.4 2008/04/08 18:48:43 kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org>
*
@@ -222,10 +222,12 @@ wbsio_attach(struct device *parent, struct device *self, void *aux)
}
int
-wbsio_print(void *aux, const char *isa)
+wbsio_print(void *aux, const char *pnp)
{
struct isa_attach_args *ia = aux;
+ if (pnp)
+ printf("%s", pnp);
if (ia->ia_iosize)
printf(" port 0x%x", ia->ia_iobase);
if (ia->ia_iosize > 1)