diff options
author | Lioncash <mathew1800@gmail.com> | 2018-05-02 09:14:28 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-05-02 09:49:36 -0400 |
commit | 7c9644646f595605036b9fe9e51c44716ee60fa3 (patch) | |
tree | 20f8f60d78ed7db5c76629d452ed196d43dc3e78 /src/core/hw/hw.cpp | |
parent | 8262aeeac886f8b03cac5a5050580ac7ac77af4c (diff) |
general: Make formatting of logged hex values more straightforward
This makes the formatting expectations more obvious (e.g. any zero padding specified
is padding that's entirely dedicated to the value being printed, not any pretty-printing
that also gets tacked on).
Diffstat (limited to 'src/core/hw/hw.cpp')
-rw-r--r-- | src/core/hw/hw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp index f8a40390a..8fc91dc9c 100644 --- a/src/core/hw/hw.cpp +++ b/src/core/hw/hw.cpp @@ -33,7 +33,7 @@ inline void Read(T& var, const u32 addr) { LCD::Read(var, addr); break; default: - NGLOG_ERROR(HW_Memory, "Unknown Read{} @ {:#010X}", sizeof(var) * 8, addr); + NGLOG_ERROR(HW_Memory, "Unknown Read{} @ 0x{:08X}", sizeof(var) * 8, addr); break; } } @@ -62,7 +62,7 @@ inline void Write(u32 addr, const T data) { LCD::Write(addr, data); break; default: - NGLOG_ERROR(HW_Memory, "Unknown Write{} {:#010X} @ {:#010X}", sizeof(data) * 8, data, addr); + NGLOG_ERROR(HW_Memory, "Unknown Write{} 0x{:08X} @ 0x{:08X}", sizeof(data) * 8, data, addr); break; } } |