diff options
author | imp <imp@FreeBSD.org> | 2003-03-14 13:17:35 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-03-14 13:17:35 +0000 |
commit | dd59bce60901d7b3460e9cb51dab47b7a0599b38 (patch) | |
tree | 9346ba5af52c96fd324c483770843c02c7f20b52 /usr.sbin/pccard/pccardd | |
parent | 43a64030666bc52a12b049a82e9088378a7527d0 (diff) | |
download | FreeBSD-src-dd59bce60901d7b3460e9cb51dab47b7a0599b38.zip FreeBSD-src-dd59bce60901d7b3460e9cb51dab47b7a0599b38.tar.gz |
Don't be so verbose about 'unknown' CIS tuples. We were printing each
one three times before we did the dump. Also, we printed 0x00 for the
tuple type rather than the actual tuple type. Now, we print the
actual tuple type. This appears to have no ill effects.
Should get rid of the
Code NN not found
and
code Unknown ignored
messages. The ignored messages are still generated for tuples tuples
who have a minimum length set and we find a tuple of that type that's
shorter than the minimum length.
Diffstat (limited to 'usr.sbin/pccard/pccardd')
-rw-r--r-- | usr.sbin/pccard/pccardd/readcis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/pccard/pccardd/readcis.c b/usr.sbin/pccard/pccardd/readcis.c index 35fbcb6..b5e9096 100644 --- a/usr.sbin/pccard/pccardd/readcis.c +++ b/usr.sbin/pccard/pccardd/readcis.c @@ -692,7 +692,7 @@ read_one_tuplelist(int fd, int flags, off_t offs) hss = hss_check(tp->data); #endif /* HSSYNTH */ } - if (tinfo == NULL || (tinfo->length != 255 && tinfo->length > length)) { + if (tinfo != NULL && (tinfo->length != 255 && tinfo->length > length)) { printf("code %s ignored\n", tuple_name(code)); tp->code = CIS_NULL; } @@ -775,7 +775,6 @@ get_tuple_info(unsigned char code) for (tp = tuple_info; tp->name; tp++) if (tp->code == code) return (tp); - printf("Code %d not found\n", code); return (0); } |