svn commit: r342811 - head/sys/contrib/ncsw/user/env
Justin Hibbits
jhibbits at FreeBSD.org
Sun Jan 6 05:07:53 UTC 2019
Author: jhibbits
Date: Sun Jan 6 05:07:52 2019
New Revision: 342811
URL: https://svnweb.freebsd.org/changeset/base/342811
Log:
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
Modified:
head/sys/contrib/ncsw/user/env/xx.c
Modified: head/sys/contrib/ncsw/user/env/xx.c
==============================================================================
--- head/sys/contrib/ncsw/user/env/xx.c Sun Jan 6 02:39:03 2019 (r342810)
+++ head/sys/contrib/ncsw/user/env/xx.c Sun Jan 6 05:07:52 2019 (r342811)
@@ -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);
}
More information about the svn-src-all
mailing list