From 803c110e3031cda094de41ff477579482d5a7ae3 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sun, 23 Feb 2014 08:32:52 +0100 Subject: [PATCH] MMIO: Show the read/write size in invalid handlers. --- Source/Core/Core/HW/MMIO.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/HW/MMIO.cpp b/Source/Core/Core/HW/MMIO.cpp index 2f8788b214..667165b8b7 100644 --- a/Source/Core/Core/HW/MMIO.cpp +++ b/Source/Core/Core/HW/MMIO.cpp @@ -194,8 +194,8 @@ template ReadHandlingMethod* InvalidRead() { return ComplexRead([](u32 addr) { - ERROR_LOG(MEMMAP, "Trying to read from an invalid MMIO (addr=%08x)", - addr); + ERROR_LOG(MEMMAP, "Trying to read%d from an invalid MMIO (addr=%08x)", + 8 * (int)(sizeof (T)), addr); return -1; }); } @@ -203,8 +203,8 @@ template WriteHandlingMethod* InvalidWrite() { return ComplexWrite([](u32 addr, T val) { - ERROR_LOG(MEMMAP, "Trying to write to an invalid MMIO (addr=%08x, val=%08x)", - addr, (u32)val); + ERROR_LOG(MEMMAP, "Trying to write%d to an invalid MMIO (addr=%08x, val=%08x)", + 8 * (int)(sizeof (T)), addr, (u32)val); }); }