Better logging

This commit is contained in:
momo5502
2025-01-03 14:04:15 +01:00
parent 010fbb2120
commit 1297a7a3ea
2 changed files with 5 additions and 3 deletions

View File

@@ -129,7 +129,8 @@ namespace
{
#ifdef CONCISE_EMULATOR_OUTPUT
static uint64_t count{0};
if (++count > 100) return;
++count;
if (count > 100 && count % 10000 != 0) return;
#endif
win_emu.logger.print(
@@ -147,7 +148,8 @@ namespace
{
#ifdef CONCISE_EMULATOR_OUTPUT
static uint64_t count{0};
if (++count > 100) return;
++count;
if (count > 100 && count % 10000 != 0) return;
#endif
win_emu.logger.print(

View File

@@ -104,7 +104,7 @@ void syscall_dispatcher::dispatch(windows_emulator& win_emu)
const auto return_address = c.emu.read_memory<uint64_t>(rsp);
const auto* mod_name = context.module_manager.find_name(return_address);
win_emu.logger.print(color::dark_gray, "Executing syscall: %s (0x%X) at 0x%llX via %llX (%s)\n",
win_emu.logger.print(color::dark_gray, "Executing syscall: %s (0x%X) at 0x%llX via 0x%llX (%s)\n",
entry->second.name.c_str(),
syscall_id, address, return_address, mod_name);
}