From 9e430cbdd63fb7f2e435306a6ca6089d3109144c Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Tue, 21 Mar 2017 23:09:14 -0700 Subject: [PATCH] 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, ~~~^ ``` --- Source/Core/Core/PowerPC/BreakPoints.cpp | 5 +++-- 1 file 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(size * 2), value, addr, + debug_interface->GetDescription(addr).c_str()); } if (break_on_hit) return true;