aboutsummaryrefslogtreecommitdiff
path: root/src/core/hw/hw.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-26 10:35:36 -0400
committerGitHub <noreply@github.com>2018-04-26 10:35:36 -0400
commit4f281b3829f9404bddcbb9a2731a800839c9fab4 (patch)
tree7ec7e44647a567dbf8fd1407745eff8fe28e2dd1 /src/core/hw/hw.cpp
parentf81b915fd8112b9ae50c75d3bd2feafa9c8cda93 (diff)
parent08da0b7acc6e9a251a8505a0abf6deaf2276cde8 (diff)
Merge pull request #400 from lioncash/hw
core/hw: Move logging macros over to fmt-capable ones
Diffstat (limited to 'src/core/hw/hw.cpp')
-rw-r--r--src/core/hw/hw.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp
index 0db604c76d..f8a40390a1 100644
--- a/src/core/hw/hw.cpp
+++ b/src/core/hw/hw.cpp
@@ -33,7 +33,8 @@ inline void Read(T& var, const u32 addr) {
LCD::Read(var, addr);
break;
default:
- LOG_ERROR(HW_Memory, "unknown Read%lu @ 0x%08X", sizeof(var) * 8, addr);
+ NGLOG_ERROR(HW_Memory, "Unknown Read{} @ {:#010X}", sizeof(var) * 8, addr);
+ break;
}
}
@@ -61,7 +62,8 @@ inline void Write(u32 addr, const T data) {
LCD::Write(addr, data);
break;
default:
- LOG_ERROR(HW_Memory, "unknown Write%lu 0x%08X @ 0x%08X", sizeof(data) * 8, (u32)data, addr);
+ NGLOG_ERROR(HW_Memory, "Unknown Write{} {:#010X} @ {:#010X}", sizeof(data) * 8, data, addr);
+ break;
}
}
@@ -83,12 +85,12 @@ void Update() {}
/// Initialize hardware
void Init() {
LCD::Init();
- LOG_DEBUG(HW, "initialized OK");
+ NGLOG_DEBUG(HW, "Initialized OK");
}
/// Shutdown hardware
void Shutdown() {
LCD::Shutdown();
- LOG_DEBUG(HW, "shutdown OK");
+ NGLOG_DEBUG(HW, "Shutdown OK");
}
} // namespace HW