Browse Source

riscv: turn off a debug print

It seems it's not needed all the time.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 3 years ago
parent
commit
e9ebce76f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sys/src/9/riscv/mmu.c

+ 1 - 1
sys/src/9/riscv/mmu.c

@@ -513,7 +513,7 @@ mmuput(uintptr_t va, Page *pg, uint attr)
 		mmuptpcheck(up);
 	user = (va < KZERO);
 	x = PTLX(va, 2);
-	if (1) print("user is %d, index for %p is 0x%x, ", user, va, x);
+	if (DBGFLG) print("user is %d, index for %p is 0x%x, ", user, va, x);
 
 	pte = UINT2PTR(machp()->MMU.root->va);
 	pte += x;