From dd59bce60901d7b3460e9cb51dab47b7a0599b38 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 14 Mar 2003 13:17:35 +0000 Subject: 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. --- usr.sbin/pccard/pccardd/readcis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin/pccard') 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); } -- cgit v1.1