From 405f55d978d4d67015577367133aca769d7c2f36 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 11 Oct 2011 07:46:45 +0000 Subject: Cast to unsigned for %#jx. Noticed by: jh@ --- usr.bin/kdump/kdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index ede6a8d..ae3b4a4 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -114,7 +114,7 @@ struct ktr_header ktr_header; if (decimal) \ printf("%c%jd", c, (intmax_t)*i); \ else \ - printf("%c%#jx", c, (intmax_t)*i); \ + printf("%c%#jx", c, (uintmax_t)*i); \ i++; \ n--; \ c = ','; \ -- cgit v1.1