Use %s __func__ to print the actual function name (been looking at

the wrong one for too often lately at first), and also use %#lx to
get the 0x prefix for the address.

MFC after:	1 week
This commit is contained in:
Bjoern A. Zeeb 2017-02-14 01:20:03 +00:00
parent 87dc0e9bc9
commit 05d58177e8

View File

@ -528,8 +528,8 @@ RetryFault:;
fs.map_generation = fs.map->timestamp;
if (fs.entry->eflags & MAP_ENTRY_NOFAULT) {
panic("vm_fault: fault on nofault entry, addr: %lx",
(u_long)vaddr);
panic("%s: fault on nofault entry, addr: %#lx",
__func__, (u_long)vaddr);
}
if (fs.entry->eflags & MAP_ENTRY_IN_TRANSITION &&