From 6411610029cc400522170cf332ee64d7a267416d Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Wed, 28 May 2003 19:21:12 +0000 Subject: Print some debug info on match routine failure --- sys/dev/isa/it.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 @@ -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); -- cgit v1.2.3