Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2012 12:08:04 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239369 - head/sys/arm/arm
Message-ID:  <201208181208.q7IC84CN021994@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208181208.q7IC84CN021994>