From ba24c8d971252db4b154999498f8617f8071a92b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 17 Jan 2002 16:16:51 +0000 Subject: [PATCH] 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(-) diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 10eb690499c7..93c5b3e29afc 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),