Don't warn on GetConfig IOCTL fails

This commit is contained in:
Billy Laws 2022-08-31 15:17:07 +01:00
parent 4aef24ba32
commit d9c8e62d1c

View File

@ -72,7 +72,10 @@ namespace skyline::service::nvdrv {
case PosixResult::InappropriateIoctlForDevice:
case PosixResult::NotSupported:
default:
Logger::Warn("IOCTL {} failed: {}", ioctl, static_cast<i32>(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<i32>(result));
return result;
}
}