Browse Source

UserspaceEmulator: Put some syscall logging behind DEBUG_SPAM

Andreas Kling 5 years ago
parent
commit
1d32c66dde
1 changed files with 4 additions and 0 deletions
  1. 4 0
      DevTools/UserspaceEmulator/Emulator.cpp

+ 4 - 0
DevTools/UserspaceEmulator/Emulator.cpp

@@ -35,6 +35,8 @@
 #include <sys/mman.h>
 #include <unistd.h>
 
+//#define DEBUG_SPAM
+
 namespace UserspaceEmulator {
 
 static constexpr u32 stack_location = 0x10000000;
@@ -218,7 +220,9 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
     (void)arg2;
     (void)arg3;
 
+#ifdef DEBUG_SPAM
     dbgprintf("Syscall: %s (%x)\n", Syscall::to_string((Syscall::Function)function), function);
+#endif
     switch (function) {
     case SC_mmap:
         return virt$mmap(arg1);