summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-02-14 00:43:26 -0500
committerGravatar Lioncash2018-02-14 01:52:54 -0500
commitce1fe0387f5629778e23233d9b2e0d98dfb043cd (patch)
treeb3e75ad3be76f8dd4d150554717d81a08f3fd90c /src
parentnvhost_as_gpu: Silence formatting specifier warnings (diff)
downloadyuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.tar.gz
yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.tar.xz
yuzu-ce1fe0387f5629778e23233d9b2e0d98dfb043cd.zip
nvhost_ctrl_gpu: Silence formatting specifier warnings
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp7
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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <cinttypes>
5#include "common/assert.h" 6#include "common/assert.h"
6#include "common/logging/log.h" 7#include "common/logging/log.h"
7#include "core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h" 8#include "core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h"
@@ -11,8 +12,8 @@ namespace Nvidia {
11namespace Devices { 12namespace Devices {
12 13
13u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { 14u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {
14 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%llx, output_size=0x%llx", 15 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx",
15 command, input.size(), output.size()); 16 command.raw, input.size(), output.size());
16 17
17 switch (static_cast<IoctlCommand>(command.raw)) { 18 switch (static_cast<IoctlCommand>(command.raw)) {
18 case IoctlCommand::IocGetCharacteristicsCommand: 19 case IoctlCommand::IocGetCharacteristicsCommand:
@@ -78,7 +79,7 @@ u32 nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::vecto
78u32 nvhost_ctrl_gpu::GetTPCMasks(const std::vector<u8>& input, std::vector<u8>& output) { 79u32 nvhost_ctrl_gpu::GetTPCMasks(const std::vector<u8>& input, std::vector<u8>& output) {
79 IoctlGpuGetTpcMasksArgs params{}; 80 IoctlGpuGetTpcMasksArgs params{};
80 std::memcpy(&params, input.data(), input.size()); 81 std::memcpy(&params, input.data(), input.size());
81 LOG_WARNING(Service_NVDRV, "(STUBBED) called, mask=0x%x, mask_buf_addr=0x%lx", 82 LOG_WARNING(Service_NVDRV, "(STUBBED) called, mask=0x%x, mask_buf_addr=0x%" PRIx64,
82 params.mask_buf_size, params.mask_buf_addr); 83 params.mask_buf_size, params.mask_buf_addr);
83 std::memcpy(output.data(), &params, sizeof(params)); 84 std::memcpy(output.data(), &params, sizeof(params));
84 return 0; 85 return 0;