summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2003-05-28 19:21:12 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2003-05-28 19:21:12 +0000
commit6411610029cc400522170cf332ee64d7a267416d (patch)
treebf3d6162d958167dff732597886b250f9a21f25b /sys/dev
parent906a770a3f4dd95e3fc67ecbadc7042593247a48 (diff)
Print some debug info on match routine failure
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/it.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index f78930744ce..0275d5510c7 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.1 2003/05/20 20:26:27 grange Exp $ */
+/* $OpenBSD: it.c,v 1.2 2003/05/28 19:21:11 grange Exp $ */
/*
* Copyright (c) 2003 Julien Bordet <zejames@greygats.org>
@@ -82,14 +82,18 @@ it_match(struct device *parent, void *match, void *aux)
u_int8_t cr;
/* 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);
+ }
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);
+ }
/* Check for some power-on defaults */
bus_space_write_1(iot, ioh, ITC_ADDR, ITD_CONFIG);