summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-02-14 00:20:04 -0500
committerGravatar Lioncash2018-02-14 01:50:01 -0500
commit51ce224a969e0996f8797396dd38a639545f1b7b (patch)
tree75a32578fe2fa718b724d1bca37f42dc1a794bf5 /src/core/gdbstub/gdbstub.cpp
parentMerge pull request #187 from Subv/maxwell3d_query (diff)
downloadyuzu-51ce224a969e0996f8797396dd38a639545f1b7b.tar.gz
yuzu-51ce224a969e0996f8797396dd38a639545f1b7b.tar.xz
yuzu-51ce224a969e0996f8797396dd38a639545f1b7b.zip
gdbstub: Silence formatting specifier warnings
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
-rw-r--r--src/core/gdbstub/gdbstub.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index 2405da0c6..7a142dc21 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -6,6 +6,7 @@
6 6
7#include <algorithm> 7#include <algorithm>
8#include <atomic> 8#include <atomic>
9#include <cinttypes>
9#include <climits> 10#include <climits>
10#include <csignal> 11#include <csignal>
11#include <cstdarg> 12#include <cstdarg>
@@ -360,8 +361,9 @@ static void RemoveBreakpoint(BreakpointType type, PAddr addr) {
360 361
361 auto bp = p.find(static_cast<u64>(addr)); 362 auto bp = p.find(static_cast<u64>(addr));
362 if (bp != p.end()) { 363 if (bp != p.end()) {
363 LOG_DEBUG(Debug_GDBStub, "gdb: removed a breakpoint: %08x bytes at %08x of type %d\n", 364 LOG_DEBUG(Debug_GDBStub,
364 bp->second.len, bp->second.addr, type); 365 "gdb: removed a breakpoint: %016" PRIx64 " bytes at %016" PRIx64 " of type %d\n",
366 bp->second.len, bp->second.addr, static_cast<int>(type));
365 p.erase(static_cast<u64>(addr)); 367 p.erase(static_cast<u64>(addr));
366 } 368 }
367} 369}
@@ -407,8 +409,9 @@ bool CheckBreakpoint(PAddr addr, BreakpointType type) {
407 409
408 if (bp->second.active && (addr >= bp->second.addr && addr < bp->second.addr + len)) { 410 if (bp->second.active && (addr >= bp->second.addr && addr < bp->second.addr + len)) {
409 LOG_DEBUG(Debug_GDBStub, 411 LOG_DEBUG(Debug_GDBStub,
410 "Found breakpoint type %d @ %08x, range: %08x - %08x (%d bytes)\n", type, 412 "Found breakpoint type %d @ %016" PRIx64 ", range: %016" PRIx64
411 addr, bp->second.addr, bp->second.addr + len, len); 413 " - %016" PRIx64 " (%" PRIx64 " bytes)\n",
414 static_cast<int>(type), addr, bp->second.addr, bp->second.addr + len, len);
412 return true; 415 return true;
413 } 416 }
414 } 417 }
@@ -778,8 +781,8 @@ static bool CommitBreakpoint(BreakpointType type, PAddr addr, u64 len) {
778 breakpoint.len = len; 781 breakpoint.len = len;
779 p.insert({addr, breakpoint}); 782 p.insert({addr, breakpoint});
780 783
781 LOG_DEBUG(Debug_GDBStub, "gdb: added %d breakpoint: %08x bytes at %08x\n", type, breakpoint.len, 784 LOG_DEBUG(Debug_GDBStub, "gdb: added %d breakpoint: %016" PRIx64 " bytes at %016" PRIx64 "\n",
782 breakpoint.addr); 785 static_cast<int>(type), breakpoint.len, breakpoint.addr);
783 786
784 return true; 787 return true;
785} 788}