svn commit: r239369 - head/sys/arm/arm

Hiroki Sato hrs at FreeBSD.org
Sat Aug 18 12:08:05 UTC 2012


Author: hrs
Date: Sat Aug 18 12:08:04 2012
New Revision: 239369
URL: http://svn.freebsd.org/changeset/base/239369

Log:
  Fix build when DEBUG is defined.

Modified:
  head/sys/arm/arm/pmap-v6.c

Modified: head/sys/arm/arm/pmap-v6.c
==============================================================================
--- head/sys/arm/arm/pmap-v6.c	Sat Aug 18 11:40:55 2012	(r239368)
+++ head/sys/arm/arm/pmap-v6.c	Sat Aug 18 12:08:04 2012	(r239369)
@@ -174,6 +174,10 @@ __FBSDID("$FreeBSD$");
 #include <machine/cpufunc.h>
 #include <machine/pcb.h>
 
+#ifdef DEBUG
+extern int last_fault_code;
+#endif
+
 #ifdef PMAP_DEBUG
 #define PDEBUG(_lev_,_stat_) \
         if (pmap_debug_level >= (_lev_)) \
@@ -1352,8 +1356,7 @@ pmap_fault_fixup(pmap_t pm, vm_offset_t 
 	 * the TLB.
 	 */
 	if (rv == 0 && pm->pm_l1->l1_domain_use_count == 1) {
-		extern int last_fault_code;
-		printf("fixup: pm %p, va 0x%lx, ftype %d - nothing to do!\n",
+		printf("fixup: pm %p, va 0x%08x, ftype %d - nothing to do!\n",
 		    pm, va, ftype);
 		printf("fixup: l2 %p, l2b %p, ptep %p, pl1pd %p\n",
 		    l2, l2b, ptep, pl1pd);


More information about the svn-src-head mailing list