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:
Justin Hibbits 2019-01-06 05:07:52 +00:00
parent 5c81ba5ade
commit 14843112b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342811

View File

@ -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);
}