summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2008-04-08 18:48:43 +0000
committerkettenis <kettenis@openbsd.org>2008-04-08 18:48:43 +0000
commit906a3a403b72c6b4222ca8bb7974642700dcc221 (patch)
tree6c8c9ad640870bddf095cd26053b8fb6ce805674
parentdocument "make install" for the kernel; requested by Girish Venkatachalam (diff)
downloadwireguard-openbsd-906a3a403b72c6b4222ca8bb7974642700dcc221.tar.xz
wireguard-openbsd-906a3a403b72c6b4222ca8bb7974642700dcc221.zip
Fix dmesg printing in the case that no device attaches.
ok miod@, deraadt@
-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)