From 5fdff10be50ef261f6a12fbee89b17525ec2c13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 23 Jul 2024 22:13:24 +0200 Subject: [PATCH] Minor logging tweak --- Core/HLE/sceIo.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Core/HLE/sceIo.cpp b/Core/HLE/sceIo.cpp index 6b5a336b2c..7b310b8f71 100644 --- a/Core/HLE/sceIo.cpp +++ b/Core/HLE/sceIo.cpp @@ -2291,11 +2291,12 @@ static u32 sceIoGetAsyncStat(int id, u32 poll, u32 address) { return SCE_KERNEL_ERROR_NOASYNC; } return 0; //completed - } - else - { - ERROR_LOG(Log::sceIo, "ERROR - sceIoGetAsyncStat with invalid id %i", id); - return SCE_KERNEL_ERROR_BADF; + } else { + if (id == 0) { + return hleLogDebug(Log::sceIo, SCE_KERNEL_ERROR_BADF, "ERROR - sceIoGetAsyncStat with invalid id %d", id); + } else { + return hleLogError(Log::sceIo, SCE_KERNEL_ERROR_BADF, "ERROR - sceIoGetAsyncStat with invalid id %d", id); + } } }