Date: Wed, 27 Jan 2016 17:47:08 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r294928 - head/sys/dev/ofw Message-ID: <201601271747.u0RHl8o6035453@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601271747.u0RHl8o6035453>