diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-02-14 00:47:51 -0500 | 
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-02-14 01:52:55 -0500 | 
| commit | 983777a3179b6e65d37c6432a601185b5827706b (patch) | |
| tree | 025803996789865dacefbbed41f00c9d99e38506 | |
| parent | 2d388a75f0f057821d8747cabcb3fc8ae74f28d7 (diff) | |
nvhost_gpu: Silence formatting specifier warnings
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp | 14 | 
1 files changed, 8 insertions, 6 deletions
| diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp index 0b2ebd466..da44c65f3 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp @@ -2,6 +2,7 @@  // Licensed under GPLv2 or any later version  // Refer to the license.txt file included. +#include <cinttypes>  #include <map>  #include "common/assert.h"  #include "common/logging/log.h" @@ -13,8 +14,8 @@ namespace Nvidia {  namespace Devices {  u32 nvhost_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::IocSetNVMAPfdCommand: @@ -74,7 +75,8 @@ u32 nvhost_gpu::GetClientData(const std::vector<u8>& input, std::vector<u8>& out  u32 nvhost_gpu::ZCullBind(const std::vector<u8>& input, std::vector<u8>& output) {      std::memcpy(&zcull_params, input.data(), input.size()); -    LOG_DEBUG(Service_NVDRV, "called, gpu_va=%lx, mode=%x", zcull_params.gpu_va, zcull_params.mode); +    LOG_DEBUG(Service_NVDRV, "called, gpu_va=%" PRIx64 ", mode=%x", zcull_params.gpu_va, +              zcull_params.mode);      std::memcpy(output.data(), &zcull_params, output.size());      return 0;  } @@ -82,8 +84,8 @@ u32 nvhost_gpu::ZCullBind(const std::vector<u8>& input, std::vector<u8>& output)  u32 nvhost_gpu::SetErrorNotifier(const std::vector<u8>& input, std::vector<u8>& output) {      IoctlSetErrorNotifier params{};      std::memcpy(¶ms, input.data(), input.size()); -    LOG_WARNING(Service_NVDRV, "(STUBBED) called, offset=%lx, size=%lx, mem=%x", params.offset, -                params.size, params.mem); +    LOG_WARNING(Service_NVDRV, "(STUBBED) called, offset=%" PRIx64 ", size=%" PRIx64 ", mem=%x", +                params.offset, params.size, params.mem);      std::memcpy(output.data(), ¶ms, output.size());      return 0;  } @@ -123,7 +125,7 @@ u32 nvhost_gpu::SubmitGPFIFO(const std::vector<u8>& input, std::vector<u8>& outp          UNIMPLEMENTED();      IoctlSubmitGpfifo params{};      std::memcpy(¶ms, input.data(), sizeof(IoctlSubmitGpfifo)); -    LOG_WARNING(Service_NVDRV, "(STUBBED) called, gpfifo=%lx, num_entries=%x, flags=%x", +    LOG_WARNING(Service_NVDRV, "(STUBBED) called, gpfifo=%" PRIx64 ", num_entries=%x, flags=%x",                  params.gpfifo, params.num_entries, params.flags);      auto entries = std::vector<IoctlGpfifoEntry>(); | 
