shithub: 9ferno

Download patch

ref: 3bc3af7088d6792ede592996cacbdd825c06e74c
parent: 11a2743d651e882b254712f550cec9eba984f2db
author: 9ferno <gophone2015@gmail.com>
date: Tue Aug 10 18:55:50 EDT 2021

cleanup debug comments

--- a/os/pc64/memory.c	Tue Aug 10 18:25:59 2021
+++ b/os/pc64/memory.c	Tue Aug 10 18:55:50 2021
@@ -16,7 +16,7 @@
 		initialization is accounted for.
  */
 
-#define DP if(0){}else print
+#define DP if(1){}else print
 
 enum {
 	MemUPA		= 0,	/* unbacked physical address */
@@ -286,14 +286,13 @@
 {
 	DP("before memmapalloc pa 0x%p size 0x%x %d\n",
 		pa, size, size);
-	memmapdump();
 	return memmapalloc(pa, size, align, MemUPA);
 }
 
 uintptr
 upamalloc(uintptr pa, u32 size, u32 align)
 {
-	print("before memmapalloc pa 0x%p size 0x%x %d\n",
+	DP("before memmapalloc pa 0x%p size 0x%x %d\n",
 		pa, size, size);
 	return memmapalloc(pa, size, align, MemUPA);
 }