diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-05-28 19:15:38 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-05-28 19:15:38 +0000 |
commit | b3fce648c122b19fde0fa6ecdffcd459788d2076 (patch) | |
tree | 9833fc108bc6b931ab30d0c32dddf7308068932b /sys/dev | |
parent | 8d4c367886d3cbc332d0534aac4008e656cffaef (diff) |
Print some debug info on match routine failure
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/lm_isa.c | 11 |
1 files changed, 7 insertions, 4 deletions
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); |