summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMichael Maltese <michaeljosephmaltese@gmail.com>2017-03-21 23:09:14 -0700
committerMichael Maltese <michaeljosephmaltese@gmail.com>2017-03-21 23:25:17 -0700
commit9e430cbdd63fb7f2e435306a6ca6089d3109144c (patch)
treed8e32a0e9394ff9edfe6b6490c6622292182f94e /Source/Core
parentf03fa54bcbe5b47b22d3731a2f5dab3d9a7bf3f9 (diff)
Breakpoints.cpp: fix format string warnings
Fixes warnings: ``` dolphin/Source/Core/Core/PowerPC/BreakPoints.cpp:246:89: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] debug_interface->GetDescription(pc).c_str(), write ? "Write" : "Read", size * 8, ^~~~~~~~ dolphin/Source/Core/Core/PowerPC/BreakPoints.cpp:245:50: warning: field width should have type 'int', but argument has type 'unsigned long' [-Wformat] NOTICE_LOG(MEMMAP, "MBP %08x (%s) %s%zu %0*x at %08x (%s)", pc, ~~~^ ```
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/BreakPoints.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/Core/PowerPC/BreakPoints.cpp b/Source/Core/Core/PowerPC/BreakPoints.cpp
index cca92af2f4..864793f5e8 100644
--- a/Source/Core/Core/PowerPC/BreakPoints.cpp
+++ b/Source/Core/Core/PowerPC/BreakPoints.cpp
@@ -242,9 +242,10 @@ bool TMemCheck::Action(DebugInterface* debug_interface, u32 value, u32 addr, boo
{
if (log_on_hit)
{
- NOTICE_LOG(MEMMAP, "MBP %08x (%s) %s%i %0*x at %08x (%s)", pc,
+ NOTICE_LOG(MEMMAP, "MBP %08x (%s) %s%zu %0*x at %08x (%s)", pc,
debug_interface->GetDescription(pc).c_str(), write ? "Write" : "Read", size * 8,
- size * 2, value, addr, debug_interface->GetDescription(addr).c_str());
+ static_cast<int>(size * 2), value, addr,
+ debug_interface->GetDescription(addr).c_str());
}
if (break_on_hit)
return true;