From 1eb877f8440235d67de422d66593519c68e7ebd8 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 8 Apr 2008 18:48:44 +0000 Subject: Fix dmesg printing in the case that no device attaches. ok miod@, deraadt@ --- sys/dev/isa/wbsio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/isa/wbsio.c') 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 * @@ -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) -- cgit v1.2.3