dtsec: Fix formatting of addresses in translation error messages
Don't clamp addresses to 8 hex digits, particularly since this is primarily used now on a 64-bit platform. MFC after: 1 week
This commit is contained in:
parent
5c81ba5ade
commit
14843112b8
4
sys/contrib/ncsw/user/env/xx.c
vendored
4
sys/contrib/ncsw/user/env/xx.c
vendored
@ -704,7 +704,7 @@ XX_VirtToPhys(void *addr)
|
||||
paddr = pmap_kextract((vm_offset_t)addr);
|
||||
if (paddr == 0)
|
||||
printf("NetCommSW: "
|
||||
"Unable to translate virtual address 0x%08X!\n", addr);
|
||||
"Unable to translate virtual address %p!\n", addr);
|
||||
else
|
||||
pmap_track_page(kernel_pmap, (vm_offset_t)addr);
|
||||
|
||||
@ -758,7 +758,7 @@ XX_PhysToVirt(physAddress_t addr)
|
||||
return ((void *)(pv->pv_va + ((vm_offset_t)addr & PAGE_MASK)));
|
||||
|
||||
printf("NetCommSW: "
|
||||
"Unable to translate physical address 0x%08llX!\n", addr);
|
||||
"Unable to translate physical address 0x%09jx!\n", (uintmax_t)addr);
|
||||
|
||||
return (NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user