mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
UserspaceEmulator: Put some syscall logging behind DEBUG_SPAM
This commit is contained in:
parent
95a42efc62
commit
1d32c66dde
Notes:
sideshowbarker
2024-07-19 04:53:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1d32c66dde4
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue