Author: bz
Date: Tue Feb 14 01:20:03 2017
New Revision: 313714
URL: https://svnweb.freebsd.org/changeset/base/313714

Log:
  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

Modified:
  head/sys/vm/vm_fault.c

Modified: head/sys/vm/vm_fault.c
==============================================================================
--- head/sys/vm/vm_fault.c      Tue Feb 14 00:54:48 2017        (r313713)
+++ head/sys/vm/vm_fault.c      Tue Feb 14 01:20:03 2017        (r313714)
@@ -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 &&
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to