diff options
author | phk <phk@FreeBSD.org> | 2004-03-25 12:33:55 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-03-25 12:33:55 +0000 |
commit | 2855bdf0d9c749bce5e467d4ea40f15d0b726b1a (patch) | |
tree | 93d6d742f7f93665d71bdf443a147c673b8f0a5d | |
parent | 6fa18a5397081de18972bb8539f1a438fc819811 (diff) | |
download | FreeBSD-src-2855bdf0d9c749bce5e467d4ea40f15d0b726b1a.zip FreeBSD-src-2855bdf0d9c749bce5e467d4ea40f15d0b726b1a.tar.gz |
Respect decimal flag when dumping USER type records.
-rw-r--r-- | usr.bin/kdump/kdump.c | 5 |
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"); } |