Respect decimal flag when dumping USER type records.

This commit is contained in:
Poul-Henning Kamp 2004-03-25 12:33:55 +00:00
parent 3b367e998f
commit 743f91743d

View File

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