Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2018 18:54:43 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338069 - head/sys/powerpc/booke
Message-ID:  <201808191854.w7JIshSU093507@repo.freebsd.org>

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



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