aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2017-02-14 01:20:03 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2017-02-14 01:20:03 +0000
commit05d58177e8e5568ffdfe258eb5a25aa639d01f1a (patch)
tree04cc955748acab09e4333a6a7de6ea3270ca94e1
parent87dc0e9bc98b71c8211e0d8f5e0b814bbbb3cd7b (diff)
downloadsrc-05d58177e8e5568ffdfe258eb5a25aa639d01f1a.tar.gz
src-05d58177e8e5568ffdfe258eb5a25aa639d01f1a.zip
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
Notes
Notes: svn path=/head/; revision=313714
-rw-r--r--sys/vm/vm_fault.c4
1 files 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 &&