summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bfm_sc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bfm_sc2.c')
-rw-r--r--src/mame/drivers/bfm_sc2.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/bfm_sc2.c b/src/mame/drivers/bfm_sc2.c
index 46c6294a23e..f4f82acbd2a 100644
--- a/src/mame/drivers/bfm_sc2.c
+++ b/src/mame/drivers/bfm_sc2.c
@@ -163,15 +163,16 @@ Adder hardware:
#include "slots.lh"
#ifdef MAME_DEBUG
-#define LOG_SERIAL(x) logerror x // log serial communication between mainboard (scorpion2) and videoboard (adder2)
-#define UART_LOG(x) logerror x //enable UART data logging
-#define LOG(x) logerror x
+#define VERBOSE 1
#else
-#define LOG_SERIAL(x)
-#define UART_LOG(x)
-#define LOG(x)
+#define VERBOSE 0
#endif
+// log serial communication between mainboard (scorpion2) and videoboard (adder2)
+#define LOG_SERIAL(x) do { if (VERBOSE) logerror x; } while (0)
+#define UART_LOG(x) do { if (VERBOSE) logerror x; } while (0)
+#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
+
// local prototypes ///////////////////////////////////////////////////////
static int get_scorpion2_uart_status(void); // retrieve status of uart on scorpion2 board