Browse Source

riscv: turn off syscall debug prints

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

+ 2 - 2
sys/src/9/riscv/syscall.c

@@ -444,13 +444,13 @@ sysexecregs(uintptr_t entry, uint32_t ssize, void *tos)
 		panic("misaligned stack in sysexecregs");
 	}
 	sp = (uintptr_t*)(USTKTOP - ssize);
-	print("sysexecregs: entry %p sp %p tos %p\n", entry, sp, tos);
+	if (0) print("sysexecregs: entry %p sp %p tos %p\n", entry, sp, tos);
 	ureg = up->dbgreg;
 	ureg->sp = PTR2UINT(sp);
 	ureg->ip = entry;
 	ureg->epc = entry;
 	ureg->a2 = USTKTOP-sizeof(Tos);
-	print("SET ip @ %p to %p\n", &ureg->ip, entry);
+	if (0) print("SET ip @ %p to %p\n", &ureg->ip, entry);
 
 	/*
 	 * return the address of kernel/user shared data