diff options
author | imp <imp@FreeBSD.org> | 2006-06-12 03:20:44 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-06-12 03:20:44 +0000 |
commit | ace145959a31cb323053ae9ab24b1b4ba986ac08 (patch) | |
tree | c88956837a6a16f1e3f84a368e0d1ce2623eeb7b /sys/dev/cardbus | |
parent | b4fa354dd5de7033d53c035afcd9eb57905da5a1 (diff) | |
download | FreeBSD-src-ace145959a31cb323053ae9ab24b1b4ba986ac08.zip FreeBSD-src-ace145959a31cb323053ae9ab24b1b4ba986ac08.tar.gz |
Better error message when the CIS is a non-standards conforming '0'.
Diffstat (limited to 'sys/dev/cardbus')
-rw-r--r-- | sys/dev/cardbus/cardbus_cis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/cardbus/cardbus_cis.c b/sys/dev/cardbus/cardbus_cis.c index d7241a5..cb98c90 100644 --- a/sys/dev/cardbus/cardbus_cis.c +++ b/sys/dev/cardbus/cardbus_cis.c @@ -597,7 +597,9 @@ cardbus_parse_cis(device_t cbdev, device_t child, bzero(tupledata, MAXTUPLESIZE); expect_linktarget = TRUE; if ((start = pci_read_config(child, PCIR_CIS, 4)) == 0) { - device_printf(cbdev, "CIS pointer is 0!\n"); + if (cardbus_cis_debug) + device_printf(cbdev, + "Warning: CIS pointer 0 (no CIS present)\n"); return (ENXIO); } if (cardbus_cis_debug) |