From d9c8e62d1cb25bc787d7b446ea9fcc7b281819c9 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Wed, 31 Aug 2022 15:17:07 +0100 Subject: [PATCH] Don't warn on GetConfig IOCTL fails --- app/src/main/cpp/skyline/services/nvdrv/driver.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/services/nvdrv/driver.cpp b/app/src/main/cpp/skyline/services/nvdrv/driver.cpp index 9eeb7c83..c27973d6 100644 --- a/app/src/main/cpp/skyline/services/nvdrv/driver.cpp +++ b/app/src/main/cpp/skyline/services/nvdrv/driver.cpp @@ -72,7 +72,10 @@ namespace skyline::service::nvdrv { case PosixResult::InappropriateIoctlForDevice: case PosixResult::NotSupported: default: - Logger::Warn("IOCTL {} failed: {}", ioctl, static_cast(result)); + constexpr u32 GetConfigIoctl{0xC183001B}; + // GetConfig is the only ioctl that's expected to fail with one of these errors in normal use so ignore it + if (ioctl != GetConfigIoctl) + Logger::Warn("IOCTL {} failed: 0x{:X}", ioctl, static_cast(result)); return result; } }