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.
This commit is contained in:
imp 2003-03-14 13:17:35 +00:00
parent 63f2f14afc
commit b2f7b0faca

View File

@ -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);
}