summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2018-02-14 00:41:26 -0500
committerGravatar Lioncash2018-02-14 01:52:49 -0500
commitdc97117a0b2d5119ca6b623b363590228237f13f (patch)
treea7c68cd02b5c98e83666200802fd71df0960f9cd /src/core
parentthread: Silence formatting specifier warnings (diff)
downloadyuzu-dc97117a0b2d5119ca6b623b363590228237f13f.tar.gz
yuzu-dc97117a0b2d5119ca6b623b363590228237f13f.tar.xz
yuzu-dc97117a0b2d5119ca6b623b363590228237f13f.zip
nvhost_as_gpu: Silence formatting specifier warnings
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
index 9832e1899..9892402fa 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_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/core.h" 8#include "core/core.h"
@@ -13,8 +14,8 @@ namespace Nvidia {
13namespace Devices { 14namespace Devices {
14 15
15u32 nvhost_as_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { 16u32 nvhost_as_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) {
16 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%llx, output_size=0x%llx", 17 LOG_DEBUG(Service_NVDRV, "called, command=0x%08x, input_size=0x%zx, output_size=0x%zx",
17 command, input.size(), output.size()); 18 command.raw, input.size(), output.size());
18 19
19 switch (static_cast<IoctlCommand>(command.raw)) { 20 switch (static_cast<IoctlCommand>(command.raw)) {
20 case IoctlCommand::IocInitalizeExCommand: 21 case IoctlCommand::IocInitalizeExCommand:
@@ -62,7 +63,8 @@ u32 nvhost_as_gpu::MapBufferEx(const std::vector<u8>& input, std::vector<u8>& ou
62 std::memcpy(&params, input.data(), input.size()); 63 std::memcpy(&params, input.data(), input.size());
63 64
64 LOG_DEBUG(Service_NVDRV, 65 LOG_DEBUG(Service_NVDRV,
65 "called, flags=%x, nvmap_handle=%x, buffer_offset=%lx, mapping_size=%lx, offset=%lx", 66 "called, flags=%x, nvmap_handle=%x, buffer_offset=%" PRIu64 ", mapping_size=%" PRIu64
67 ", offset=%" PRIu64,
66 params.flags, params.nvmap_handle, params.buffer_offset, params.mapping_size, 68 params.flags, params.nvmap_handle, params.buffer_offset, params.mapping_size,
67 params.offset); 69 params.offset);
68 70
@@ -97,8 +99,8 @@ u32 nvhost_as_gpu::BindChannel(const std::vector<u8>& input, std::vector<u8>& ou
97u32 nvhost_as_gpu::GetVARegions(const std::vector<u8>& input, std::vector<u8>& output) { 99u32 nvhost_as_gpu::GetVARegions(const std::vector<u8>& input, std::vector<u8>& output) {
98 IoctlGetVaRegions params{}; 100 IoctlGetVaRegions params{};
99 std::memcpy(&params, input.data(), input.size()); 101 std::memcpy(&params, input.data(), input.size());
100 LOG_WARNING(Service_NVDRV, "(STUBBED) called, buf_addr=%lx, buf_size=%x", params.buf_addr, 102 LOG_WARNING(Service_NVDRV, "(STUBBED) called, buf_addr=%" PRIu64 ", buf_size=%x",
101 params.buf_size); 103 params.buf_addr, params.buf_size);
102 104
103 params.buf_size = 0x30; 105 params.buf_size = 0x30;
104 params.regions[0].offset = 0x04000000; 106 params.regions[0].offset = 0x04000000;