diff options
author | Lioncash <mathew1800@gmail.com> | 2018-02-14 06:43:26 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-02-14 07:52:54 +0100 |
commit | ce1fe0387f5629778e23233d9b2e0d98dfb043cd (patch) | |
tree | b3e75ad3be76f8dd4d150554717d81a08f3fd90c /src/core/hle/service/nvdrv/devices | |
parent | nvhost_as_gpu: Silence formatting specifier warnings (diff) | |
download | yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.tar yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.tar.gz yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.tar.bz2 yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.tar.lz yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.tar.xz yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.tar.zst yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/devices')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp index 4776c8aa3..3b353d742 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <cinttypes> #include "common/assert.h" #include "common/logging/log.h" #include "core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h" @@ -11,8 +12,8 @@ namespace Nvidia { namespace Devices { u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { - LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%llx, output_size=0x%llx", - command, input.size(), output.size()); + LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx", + command.raw, input.size(), output.size()); switch (static_cast<IoctlCommand>(command.raw)) { case IoctlCommand::IocGetCharacteristicsCommand: @@ -78,7 +79,7 @@ u32 nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::vecto u32 nvhost_ctrl_gpu::GetTPCMasks(const std::vector<u8>& input, std::vector<u8>& output) { IoctlGpuGetTpcMasksArgs params{}; std::memcpy(¶ms, input.data(), input.size()); - LOG_WARNING(Service_NVDRV, "(STUBBED) called, mask=0x%x, mask_buf_addr=0x%lx", + LOG_WARNING(Service_NVDRV, "(STUBBED) called, mask=0x%x, mask_buf_addr=0x%" PRIx64, params.mask_buf_size, params.mask_buf_addr); std::memcpy(output.data(), ¶ms, sizeof(params)); return 0; |