diff options
| author | 2018-04-26 10:35:36 -0400 | |
|---|---|---|
| committer | 2018-04-26 10:35:36 -0400 | |
| commit | 4f281b3829f9404bddcbb9a2731a800839c9fab4 (patch) | |
| tree | 7ec7e44647a567dbf8fd1407745eff8fe28e2dd1 /src/core/hw/lcd.cpp | |
| parent | Merge pull request #396 from Subv/shader_ops (diff) | |
| parent | core/hw: Move logging macros over to fmt-capable ones (diff) | |
| download | yuzu-4f281b3829f9404bddcbb9a2731a800839c9fab4.tar.gz yuzu-4f281b3829f9404bddcbb9a2731a800839c9fab4.tar.xz yuzu-4f281b3829f9404bddcbb9a2731a800839c9fab4.zip | |
Merge pull request #400 from lioncash/hw
core/hw: Move logging macros over to fmt-capable ones
Diffstat (limited to 'src/core/hw/lcd.cpp')
| -rw-r--r-- | src/core/hw/lcd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hw/lcd.cpp b/src/core/hw/lcd.cpp index 690079b65..7d0046bf3 100644 --- a/src/core/hw/lcd.cpp +++ b/src/core/hw/lcd.cpp | |||
| @@ -20,7 +20,7 @@ inline void Read(T& var, const u32 raw_addr) { | |||
| 20 | 20 | ||
| 21 | // Reads other than u32 are untested, so I'd rather have them abort than silently fail | 21 | // Reads other than u32 are untested, so I'd rather have them abort than silently fail |
| 22 | if (index >= 0x400 || !std::is_same<T, u32>::value) { | 22 | if (index >= 0x400 || !std::is_same<T, u32>::value) { |
| 23 | LOG_ERROR(HW_LCD, "unknown Read%lu @ 0x%08X", sizeof(var) * 8, addr); | 23 | NGLOG_ERROR(HW_LCD, "Unknown Read{} @ {:#010X}", sizeof(var) * 8, addr); |
| 24 | return; | 24 | return; |
| 25 | } | 25 | } |
| 26 | 26 | ||
| @@ -34,7 +34,7 @@ inline void Write(u32 addr, const T data) { | |||
| 34 | 34 | ||
| 35 | // Writes other than u32 are untested, so I'd rather have them abort than silently fail | 35 | // Writes other than u32 are untested, so I'd rather have them abort than silently fail |
| 36 | if (index >= 0x400 || !std::is_same<T, u32>::value) { | 36 | if (index >= 0x400 || !std::is_same<T, u32>::value) { |
| 37 | LOG_ERROR(HW_LCD, "unknown Write%lu 0x%08X @ 0x%08X", sizeof(data) * 8, (u32)data, addr); | 37 | NGLOG_ERROR(HW_LCD, "Unknown Write{} {:#010X} @ {:#010X}", sizeof(data) * 8, data, addr); |
| 38 | return; | 38 | return; |
| 39 | } | 39 | } |
| 40 | 40 | ||
| @@ -56,12 +56,12 @@ template void Write<u8>(u32 addr, const u8 data); | |||
| 56 | /// Initialize hardware | 56 | /// Initialize hardware |
| 57 | void Init() { | 57 | void Init() { |
| 58 | memset(&g_regs, 0, sizeof(g_regs)); | 58 | memset(&g_regs, 0, sizeof(g_regs)); |
| 59 | LOG_DEBUG(HW_LCD, "initialized OK"); | 59 | NGLOG_DEBUG(HW_LCD, "Initialized OK"); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | /// Shutdown hardware | 62 | /// Shutdown hardware |
| 63 | void Shutdown() { | 63 | void Shutdown() { |
| 64 | LOG_DEBUG(HW_LCD, "shutdown OK"); | 64 | NGLOG_DEBUG(HW_LCD, "Shutdown OK"); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | } // namespace LCD | 67 | } // namespace LCD |