diff options
author | Warner Losh <imp@FreeBSD.org> | 2003-03-14 13:17:35 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2003-03-14 13:17:35 +0000 |
commit | 62bac311fc415eb59e7f2a1843d442ebc8a49328 (patch) | |
tree | 9346ba5af52c96fd324c483770843c02c7f20b52 /usr.sbin/pccard | |
parent | 564529ff1a2112926d9946e29ce723437d75c116 (diff) | |
download | src-62bac311fc415eb59e7f2a1843d442ebc8a49328.tar.gz src-62bac311fc415eb59e7f2a1843d442ebc8a49328.zip |
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.
Notes
Notes:
svn path=/head/; revision=112233
Diffstat (limited to 'usr.sbin/pccard')
-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 35fbcb6531c5..b5e90965bc52 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); } |