From 1f829463c1ec9d86696cde190ef4bcee9d39e9bf Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 4 Jun 2025 20:22:28 +0200 Subject: [PATCH] Use more semantic logging --- src/windows-emulator/syscalls/object.cpp | 5 ++--- src/windows-emulator/syscalls/registry.cpp | 9 ++++----- src/windows-emulator/syscalls/thread.cpp | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/windows-emulator/syscalls/object.cpp b/src/windows-emulator/syscalls/object.cpp index 71ab7b28..5d17be4a 100644 --- a/src/windows-emulator/syscalls/object.cpp +++ b/src/windows-emulator/syscalls/object.cpp @@ -158,8 +158,7 @@ namespace syscalls if (!is_awaitable_object_type(h)) { - c.win_emu.log.print(color::gray, "Unsupported handle type for NtWaitForMultipleObjects: %d!\n", - h.value.type); + c.win_emu.log.warn("Unsupported handle type for NtWaitForMultipleObjects: %d!\n", h.value.type); return STATUS_NOT_SUPPORTED; } @@ -180,7 +179,7 @@ namespace syscalls { if (!is_awaitable_object_type(h)) { - c.win_emu.log.print(color::gray, "Unsupported handle type for NtWaitForSingleObject: %d!\n", h.value.type); + c.win_emu.log.warn("Unsupported handle type for NtWaitForSingleObject: %d!\n", h.value.type); return STATUS_NOT_SUPPORTED; } diff --git a/src/windows-emulator/syscalls/registry.cpp b/src/windows-emulator/syscalls/registry.cpp index 969a0d70..96017a30 100644 --- a/src/windows-emulator/syscalls/registry.cpp +++ b/src/windows-emulator/syscalls/registry.cpp @@ -111,7 +111,7 @@ namespace syscalls return STATUS_SUCCESS; } - c.win_emu.log.print(color::gray, "Unsupported registry class: %X\n", key_information_class); + c.win_emu.log.warn("Unsupported registry class: %X\n", key_information_class); c.emu.stop(); return STATUS_NOT_SUPPORTED; } @@ -224,7 +224,7 @@ namespace syscalls return STATUS_SUCCESS; } - c.win_emu.log.print(color::gray, "Unsupported registry value class: %X\n", key_value_information_class); + c.win_emu.log.warn("Unsupported registry value class: %X\n", key_value_information_class); c.emu.stop(); return STATUS_NOT_SUPPORTED; } @@ -332,7 +332,7 @@ namespace syscalls return STATUS_SUCCESS; } - c.win_emu.log.print(color::gray, "Unsupported registry enumeration class: %X\n", key_information_class); + c.win_emu.log.warn("Unsupported registry enumeration class: %X\n", key_information_class); return STATUS_NOT_SUPPORTED; } @@ -443,8 +443,7 @@ namespace syscalls return STATUS_SUCCESS; } - c.win_emu.log.print(color::gray, "Unsupported registry value enumeration class: %X\n", - key_value_information_class); + c.win_emu.log.warn("Unsupported registry value enumeration class: %X\n", key_value_information_class); return STATUS_NOT_SUPPORTED; } } diff --git a/src/windows-emulator/syscalls/thread.cpp b/src/windows-emulator/syscalls/thread.cpp index ebac1908..83a615fb 100644 --- a/src/windows-emulator/syscalls/thread.cpp +++ b/src/windows-emulator/syscalls/thread.cpp @@ -329,7 +329,7 @@ namespace syscalls { if (lock.value()) { - c.win_emu.log.print(color::gray, "NtAlertThreadByThreadIdEx with lock not supported yet!"); + c.win_emu.log.warn("NtAlertThreadByThreadIdEx with lock not supported yet!"); // c.emu.stop(); // return STATUS_NOT_SUPPORTED; }