diff --git a/Common/Log/ConsoleListener.cpp b/Common/Log/ConsoleListener.cpp index 302571c1d2..1e48743f83 100644 --- a/Common/Log/ConsoleListener.cpp +++ b/Common/Log/ConsoleListener.cpp @@ -315,7 +315,7 @@ void ConsoleListener::SendToThread(LogLevel Level, const char *Text) { int ColorLen = 0; if (useColor_) { // Not ANSI, since the console doesn't support it, but ANSI-like. - snprintf(ColorAttr, 16, "\033%d", Level); + snprintf(ColorAttr, 16, "\033%d", (int)Level); // For now, rather than properly support it. _dbg_assert_msg_(strlen(ColorAttr) == 2, "Console logging doesn't support > 9 levels."); ColorLen = (int)strlen(ColorAttr); diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 01c3b57cb2..b601d42233 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -2330,7 +2330,7 @@ void __KernelReturnFromModuleFunc() { INFO_LOG(Log::sceModule, "Resuming LoadExec thread 0x%x", module->pluginWaitingThread); __KernelResumeThreadFromWait(module->pluginWaitingThread, 0); } else { - INFO_LOG(Log::sceModule, "LoadExec thread 0x%x still waiting for %ld plugin(s)", module->pluginWaitingThread, plugin_waiting_module->startingPlugins.size()); + INFO_LOG(Log::sceModule, "LoadExec thread 0x%x still waiting for %lld plugin(s)", module->pluginWaitingThread, plugin_waiting_module->startingPlugins.size()); } } } diff --git a/Windows/WASAPIContext.cpp b/Windows/WASAPIContext.cpp index 368a2d2eeb..ee83385cf1 100644 --- a/Windows/WASAPIContext.cpp +++ b/Windows/WASAPIContext.cpp @@ -218,14 +218,14 @@ bool WASAPIContext::InitOutputDevice(std::string_view uniqueId, LatencyMode late } else if (result == S_FALSE) { // We got another format. Meh, let's just use what we got. if (closestMatch) { - WARN_LOG(Log::Audio, "Didn't get the format we wanted, but got: %d ch=%d", closestMatch->nSamplesPerSec, closestMatch->nChannels); + WARN_LOG(Log::Audio, "Didn't get the format we wanted, but got: %lu ch=%d", closestMatch->nSamplesPerSec, closestMatch->nChannels); CoTaskMemFree(closestMatch); } else { WARN_LOG(Log::Audio, "Failed to fall back to two channels. Using workarounds."); } createBuffer = true; } else { - WARN_LOG(Log::Audio, "Got other error %08x", result); + WARN_LOG(Log::Audio, "Got other error %08lx", result); _dbg_assert_(!closestMatch); } } else { diff --git a/Windows/main.cpp b/Windows/main.cpp index acb23aa4ca..cf5ab99e4d 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -538,9 +538,9 @@ void System_Notify(SystemNotification notification) { case SystemNotification::SUSTAINED_PERF_CHANGE: case SystemNotification::ROTATE_UPDATED: case SystemNotification::TEST_JAVA_EXCEPTION: - break; case SystemNotification::AUDIO_MODE_CHANGED: case SystemNotification::APP_SWITCH_MODE_CHANGED: + case SystemNotification::UI_STATE_CHANGED: break; } }