svn commit: r338069 - head/sys/powerpc/booke

Justin Hibbits jhibbits at FreeBSD.org
Sun Aug 19 18:54:44 UTC 2018


Author: jhibbits
Date: Sun Aug 19 18:54:43 2018
New Revision: 338069
URL: https://svnweb.freebsd.org/changeset/base/338069

Log:
  booke pmap: hide debug-ish printf behind bootverbose
  
  It's not necessary during normal operation to know the mapped region size
  and wasted space.

Modified:
  head/sys/powerpc/booke/pmap.c

Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c	Sun Aug 19 18:47:16 2018	(r338068)
+++ head/sys/powerpc/booke/pmap.c	Sun Aug 19 18:54:43 2018	(r338069)
@@ -4177,8 +4177,9 @@ tlb1_mapin_region(vm_offset_t va, vm_paddr_t pa, vm_si
 	}
 
 	mapped = (va - base);
-	printf("mapped size 0x%"PRI0ptrX" (wasted space 0x%"PRIxPTR")\n",
-	    mapped, mapped - size);
+	if (bootverbose)
+		printf("mapped size 0x%"PRIxPTR" (wasted space 0x%"PRIxPTR")\n",
+		    mapped, mapped - size);
 	return (mapped);
 }
 


More information about the svn-src-head mailing list