Use more semantic logging

This commit is contained in:
momo5502
2025-06-04 20:22:28 +02:00
parent de0d9a17a5
commit 1f829463c1
3 changed files with 7 additions and 9 deletions

View File

@@ -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;
}

View File

@@ -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;
}
}

View File

@@ -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;
}