From 7900c60a92da9f0c91d86d68196c3b8f8c5fc849 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Wed, 27 Jan 2016 17:47:07 +0000 Subject: [PATCH] Fix the value we print when the size is too large. While here fix the types we cast to to be unsigned as the data is unsigned. Reviewed by: ian --- sys/dev/ofw/ofw_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ofw/ofw_subr.c b/sys/dev/ofw/ofw_subr.c index 68ba18ee24a7..c9b99bfb38f0 100644 --- a/sys/dev/ofw/ofw_subr.c +++ b/sys/dev/ofw/ofw_subr.c @@ -168,9 +168,9 @@ ofw_reg_to_paddr(phandle_t dev, int regno, bus_addr_t *paddr, } KASSERT(addr <= BUS_SPACE_MAXADDR, - ("Bus sddress is too large: %jx", (intmax_t)addr)); + ("Bus sddress is too large: %jx", (uintmax_t)addr)); KASSERT(size <= BUS_SPACE_MAXSIZE, - ("Bus size is too large: %jx", (intmax_t)addr)); + ("Bus size is too large: %jx", (uintmax_t)size)); *paddr = addr; *psize = size;