summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-03-11 08:14:44 +0000
committerimp <imp@FreeBSD.org>2009-03-11 08:14:44 +0000
commitb8eb06250235963ec9960b88203c8aacaa11ec77 (patch)
treecb4a90dce20ccbf0a4831741ad9648b676c0121b /sys/dev/pccard
parent9ce62c5ad10c007eef43856f8cdfa1a77a561e5e (diff)
downloadFreeBSD-src-b8eb06250235963ec9960b88203c8aacaa11ec77.zip
FreeBSD-src-b8eb06250235963ec9960b88203c8aacaa11ec77.tar.gz
Allow zero length memroy space descriptor sections. It is apparently
legal in the spec. Add newline to the verbose messages we print when debugging when this happens. The Hitachi HT-4840-11 is the only card to hit these in years, and it works well enough if we're liberal about what we accept.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/pccard_cis.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pccard/pccard_cis.c b/sys/dev/pccard/pccard_cis.c
index 605ea17..dbd7165 100644
--- a/sys/dev/pccard/pccard_cis.c
+++ b/sys/dev/pccard/pccard_cis.c
@@ -1198,8 +1198,7 @@ pccard_parse_cis_tuple(const struct pccard_tuple *tuple, void *arg)
if (lengthsize == 0) {
DPRINTF(("cfe memspace "
- "lengthsize == 0"));
- state->card->error++;
+ "lengthsize == 0\n"));
}
for (i = 0; i < cfe->num_memspace; i++) {
if (lengthsize) {
@@ -1211,9 +1210,8 @@ pccard_parse_cis_tuple(const struct pccard_tuple *tuple, void *arg)
cfe->memspace[i].length = 0;
}
if (cfe->memspace[i].length == 0) {
- DPRINTF(("cfe->memspace[%d].length == 0",
+ DPRINTF(("cfe->memspace[%d].length == 0\n",
i));
- state->card->error++;
}
if (cardaddrsize) {
cfe->memspace[i].cardaddr =
OpenPOWER on IntegriCloud