MMIO: Show the read/write size in invalid handlers.

This commit is contained in:
Pierre Bourdon 2014-02-23 08:32:52 +01:00
parent 70f3a069f2
commit 803c110e30
1 changed files with 4 additions and 4 deletions

View File

@ -194,8 +194,8 @@ template <typename T>
ReadHandlingMethod<T>* InvalidRead() ReadHandlingMethod<T>* InvalidRead()
{ {
return ComplexRead<T>([](u32 addr) { return ComplexRead<T>([](u32 addr) {
ERROR_LOG(MEMMAP, "Trying to read from an invalid MMIO (addr=%08x)", ERROR_LOG(MEMMAP, "Trying to read%d from an invalid MMIO (addr=%08x)",
addr); 8 * (int)(sizeof (T)), addr);
return -1; return -1;
}); });
} }
@ -203,8 +203,8 @@ template <typename T>
WriteHandlingMethod<T>* InvalidWrite() WriteHandlingMethod<T>* InvalidWrite()
{ {
return ComplexWrite<T>([](u32 addr, T val) { return ComplexWrite<T>([](u32 addr, T val) {
ERROR_LOG(MEMMAP, "Trying to write to an invalid MMIO (addr=%08x, val=%08x)", ERROR_LOG(MEMMAP, "Trying to write%d to an invalid MMIO (addr=%08x, val=%08x)",
addr, (u32)val); 8 * (int)(sizeof (T)), addr, (u32)val);
}); });
} }