summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/ave.cpp
diff options
context:
space:
mode:
author MooglyGuy <MooglyGuy@users.noreply.github.com>2023-05-23 07:41:27 +0200
committer GitHub <noreply@github.com>2023-05-23 15:41:27 +1000
commitc5a978bca7601f4dd2c4a0ebe397275021eb6cb1 (patch)
treeca922a9e77517f13b0d68666ad23b43d0d95b6e9 /src/devices/bus/nes/ave.cpp
parentaee8c4f3efe73dcf48438471be8c293192c7f73a (diff)
Cleaned up logging across the codebase (GitHub #10183). (#11250) [Ryan Holtz]
* Converted various logging patterns to use logmacro.h consistently. * Removed redefinitions of LOG_GENERAL. * Use LOGMASKED in more places.
Diffstat (limited to 'src/devices/bus/nes/ave.cpp')
-rw-r--r--src/devices/bus/nes/ave.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/devices/bus/nes/ave.cpp b/src/devices/bus/nes/ave.cpp
index f0f1196191c..8f2b6cace2d 100644
--- a/src/devices/bus/nes/ave.cpp
+++ b/src/devices/bus/nes/ave.cpp
@@ -21,12 +21,11 @@
#ifdef NES_PCB_DEBUG
-#define VERBOSE 1
+#define VERBOSE (LOG_GENERAL)
#else
-#define VERBOSE 0
+#define VERBOSE (0)
#endif
-
-#define LOG_MMC(x) do { if (VERBOSE) logerror x; } while (0)
+#include "logmacro.h"
//-------------------------------------------------
@@ -94,7 +93,7 @@ void nes_maxi15_device::pcb_reset()
void nes_nina001_device::write_m(offs_t offset, u8 data)
{
- LOG_MMC(("nina-001 write_m, offset: %04x, data: %02x\n", offset, data));
+ LOG("nina-001 write_m, offset: %04x, data: %02x\n", offset, data);
device_nes_cart_interface::write_m(offset, data); // write WRAM
@@ -127,7 +126,7 @@ void nes_nina001_device::write_m(offs_t offset, u8 data)
void nes_nina006_device::write_l(offs_t offset, u8 data)
{
- LOG_MMC(("nina-006 write_l, offset: %04x, data: %02x\n", offset, data));
+ LOG("nina-006 write_l, offset: %04x, data: %02x\n", offset, data);
offset += 0x100;
if (BIT(offset, 8)) // $41xx, $43xx, ... $5fxx
@@ -151,7 +150,7 @@ void nes_nina006_device::write_l(offs_t offset, u8 data)
u8 nes_maxi15_device::read_h(offs_t offset)
{
- LOG_MMC(("Maxi 15 read_h, offset: %04x\n", offset));
+ LOG("Maxi 15 read_h, offset: %04x\n", offset);
u8 temp = hi_access_rom(offset);