mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
New logging channel "KERNELPRINTF" for SceKernelPrintf
This commit is contained in:
@@ -46,6 +46,7 @@ enum class LogType {
|
||||
IO,
|
||||
ACHIEVEMENTS,
|
||||
HTTP,
|
||||
KERNELPRINTF,
|
||||
|
||||
SCEAUDIO,
|
||||
SCECTRL,
|
||||
|
||||
@@ -97,6 +97,7 @@ static const char *g_logTypeNames[] = {
|
||||
"IO",
|
||||
"ACHIEVEMENTS",
|
||||
"HTTP",
|
||||
"KERNELPRINTF",
|
||||
|
||||
"SCEAUDIO",
|
||||
"SCECTRL",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user