From b3fce648c122b19fde0fa6ecdffcd459788d2076 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Wed, 28 May 2003 19:15:38 +0000 Subject: Print some debug info on match routine failure --- sys/dev/isa/lm_isa.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sys/dev/isa/lm_isa.c') diff --git a/sys/dev/isa/lm_isa.c b/sys/dev/isa/lm_isa.c index e9637a78a17..41383b31deb 100644 --- a/sys/dev/isa/lm_isa.c +++ b/sys/dev/isa/lm_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lm_isa.c,v 1.1 2003/04/25 21:24:15 grange Exp $ */ +/* $OpenBSD: lm_isa.c,v 1.2 2003/05/28 19:15:37 grange Exp $ */ /* $NetBSD: lm_isa.c,v 1.9 2002/11/15 14:55:44 ad Exp $ */ /*- @@ -75,8 +75,10 @@ lm_isa_match(struct device *parent, void *match, void *aux) int rv; /* Must supply an address */ - if (ia->ipa_nio < 1) + if (ia->ipa_nio < 1) { + DPRINTF(("%s: ipa_nio=%d\n", __func__, ia->ipa_nio)); return (0); + } #ifdef __NetBSD__ if (ISA_DIRECT_CONFIG(ia)) @@ -89,9 +91,10 @@ lm_isa_match(struct device *parent, void *match, void *aux) iot = ia->ia_iot; iobase = ia->ipa_io[0].base; - if (bus_space_map(iot, iobase, 8, 0, &ioh)) + if (bus_space_map(iot, iobase, 8, 0, &ioh)) { + DPRINTF(("%s: can't map i/o space\n", __func__)); return (0); - + } /* Bus independent probe */ rv = lm_probe(iot, ioh); -- cgit v1.2.3