Author: andrew Date: Wed Jan 27 17:47:07 2016 New Revision: 294928 URL: https://svnweb.freebsd.org/changeset/base/294928
Log: 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 Modified: head/sys/dev/ofw/ofw_subr.c Modified: head/sys/dev/ofw/ofw_subr.c ============================================================================== --- head/sys/dev/ofw/ofw_subr.c Wed Jan 27 17:33:31 2016 (r294927) +++ head/sys/dev/ofw/ofw_subr.c Wed Jan 27 17:47:07 2016 (r294928) @@ -168,9 +168,9 @@ ofw_reg_to_paddr(phandle_t dev, int regn } 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; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"