wbsio(4): be less verbose if the device doesn't look like a wbsio device
authorConstantine A. Murenin <cnst+dfly@bugmail.mojo.ru>
Thu, 18 Mar 2010 22:19:56 +0000 (18:19 -0400)
committerConstantine A. Murenin <cnst+dfly@bugmail.mojo.ru>
Thu, 18 Mar 2010 22:19:56 +0000 (18:19 -0400)
sys/dev/powermng/wbsio/wbsio.c

index 077b92b..77a1195 100644 (file)
@@ -207,9 +207,11 @@ wbsio_probe(struct device *dev)
 #ifndef KLD_MODULE
                if (bootverbose)
 #endif
-                       device_printf(dev, "%s port 0x%02x: "
-                           "Device ID 0x%02x, Rev 0x%02x\n",
-                           __func__, isa_get_port(dev), reg_id, reg_rev);
+                       if (!(reg_id == 0xff && reg_rev == 0xff))
+                               device_printf(dev, "%s port 0x%02x: "
+                                   "Device ID 0x%02x, Rev 0x%02x\n",
+                                   __func__, isa_get_port(dev),
+                                   reg_id, reg_rev);
                return ENXIO;
        }