From 05d58177e8e5568ffdfe258eb5a25aa639d01f1a Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Tue, 14 Feb 2017 01:20:03 +0000 Subject: [PATCH] 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 --- sys/vm/vm_fault.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 822142b54afd..149b7dc89057 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -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 &&