From 2855bdf0d9c749bce5e467d4ea40f15d0b726b1a Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 25 Mar 2004 12:33:55 +0000 Subject: Respect decimal flag when dumping USER type records. --- usr.bin/kdump/kdump.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 407c373..010f862 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -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"); } -- cgit v1.1