From 64a75a722d20a87d1d8921a32f5d2699305f13f3 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 17 Jan 2002 16:16:51 +0000 Subject: While I'm not sure that I like the wording of the BIOS message in the previous commit, it should always print due to lack of {} around the second line in the if statement. The message should likely say something more like "There's no hardware responding at this IRQ. Device not present (or disbaled)," but that is too long. We generally don't give elementary advise in device driver messages anyway. Be that as it may, the problem with it printing all the time should be corrected. --- sys/dev/sio/sio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/sio/sio.c') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 10eb690..93c5b3e 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -762,13 +762,14 @@ sioprobe(dev, xrid, noprobe) irqs = irqmap[1] & ~irqmap[0]; if (bus_get_resource(idev, SYS_RES_IRQ, 0, &xirq, NULL) == 0 && - ((1 << xirq) & irqs) == 0) + ((1 << xirq) & irqs) == 0) { printf( "sio%d: configured irq %ld not in bitmap of probed irqs %#x\n", device_get_unit(dev), xirq, irqs); printf( "sio%d: port may not be enabled in BIOS\n", device_get_unit(dev)); + } if (bootverbose) printf("sio%d: irq maps: %#x %#x %#x %#x\n", device_get_unit(dev), -- cgit v1.1