Respect decimal flag when dumping USER type records.

This commit is contained in:
phk 2004-03-25 12:33:55 +00:00
parent ab1792c4b3
commit 4d840fd809

View File

@ -565,6 +565,9 @@ ktruser(int len, unsigned char *p)
{ {
(void)printf("%d ", len); (void)printf("%d ", len);
while (len--) while (len--)
if (decimal)
(void)printf(" %d", *p++);
else
(void)printf(" %02x", *p++); (void)printf(" %02x", *p++);
(void)printf("\n"); (void)printf("\n");