code: 9ferno

Download patch

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

cleanup debug comments

--- a/os/pc64/memory.c
+++ b/os/pc64/memory.c
@@ -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,7 +286,6 @@
 {
 	DP("before memmapalloc pa 0x%p size 0x%x %d\n",
 		pa, size, size);
-	memmapdump();
 	return memmapalloc(pa, size, align, MemUPA);
 }
 
@@ -293,7 +292,7 @@
 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);
 }