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
This commit is contained in:
parent
b958a08eb7
commit
7900c60a92
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user