summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-03-25 12:33:55 +0000
committerphk <phk@FreeBSD.org>2004-03-25 12:33:55 +0000
commit2855bdf0d9c749bce5e467d4ea40f15d0b726b1a (patch)
tree93d6d742f7f93665d71bdf443a147c673b8f0a5d /usr.bin/kdump
parent6fa18a5397081de18972bb8539f1a438fc819811 (diff)
downloadFreeBSD-src-2855bdf0d9c749bce5e467d4ea40f15d0b726b1a.zip
FreeBSD-src-2855bdf0d9c749bce5e467d4ea40f15d0b726b1a.tar.gz
Respect decimal flag when dumping USER type records.
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.c5
1 files changed, 4 insertions, 1 deletions
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");
}
OpenPOWER on IntegriCloud