From 90cd9d4c68925e9e32b24481cbd1585fc32aecbe Mon Sep 17 00:00:00 2001 From: Nemoumbra Date: Fri, 8 Sep 2023 00:34:26 +0300 Subject: [PATCH] New logging channel "KERNELPRINTF" for SceKernelPrintf --- Common/Log.h | 1 + Common/LogManager.cpp | 1 + Core/HLE/sceKernelMemory.cpp | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Common/Log.h b/Common/Log.h index db5c23ba9f..c1b5f70db5 100644 --- a/Common/Log.h +++ b/Common/Log.h @@ -46,6 +46,7 @@ enum class LogType { IO, ACHIEVEMENTS, HTTP, + KERNELPRINTF, SCEAUDIO, SCECTRL, diff --git a/Common/LogManager.cpp b/Common/LogManager.cpp index 008789d167..0a4c8e6d9e 100644 --- a/Common/LogManager.cpp +++ b/Common/LogManager.cpp @@ -97,6 +97,7 @@ static const char *g_logTypeNames[] = { "IO", "ACHIEVEMENTS", "HTTP", + "KERNELPRINTF", "SCEAUDIO", "SCECTRL", diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index 8c3c6fd3ae..b02f08fbf4 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -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; }