New logging channel "KERNELPRINTF" for SceKernelPrintf

This commit is contained in:
Nemoumbra
2023-09-08 00:34:26 +03:00
parent 05d8752a64
commit 90cd9d4c68
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -46,6 +46,7 @@ enum class LogType {
IO,
ACHIEVEMENTS,
HTTP,
KERNELPRINTF,
SCEAUDIO,
SCECTRL,
+1
View File
@@ -97,6 +97,7 @@ static const char *g_logTypeNames[] = {
"IO",
"ACHIEVEMENTS",
"HTTP",
"KERNELPRINTF",
"SCEAUDIO",
"SCECTRL",
+2 -2
View File
@@ -1211,9 +1211,9 @@ static int sceKernelPrintf(const char *formatString)
result.resize(result.size() - 1);
if (supported)
INFO_LOG(SCEKERNEL, "sceKernelPrintf: %s", result.c_str());
NOTICE_LOG(KERNELPRINTF, "sceKernelPrintf: %s", result.c_str());
else
ERROR_LOG(SCEKERNEL, "UNIMPL sceKernelPrintf(%s, %08x, %08x, %08x)", format.c_str(), PARAM(1), PARAM(2), PARAM(3));
ERROR_LOG(KERNELPRINTF, "UNIMPL sceKernelPrintf(%s, %08x, %08x, %08x)", format.c_str(), PARAM(1), PARAM(2), PARAM(3));
return 0;
}