summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/debug/debugcmd.c')
-rw-r--r--src/emu/debug/debugcmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index f0cea80fc53..e18466b51e3 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -998,14 +998,14 @@ static void execute_ignore(running_machine *machine, int ref, int params, const
/* build up a comma-separated list */
if (!exec->device().debug()->observing())
{
- if (buffer.len() == 0)
+ if (!buffer)
buffer.printf("Currently ignoring device '%s'", exec->device().tag());
else
buffer.catprintf(", '%s'", exec->device().tag());
}
/* special message for none */
- if (buffer.len() == 0)
+ if (!buffer)
buffer.printf("Not currently ignoring any devices");
debug_console_printf(machine, "%s\n", buffer.cstr());
}
@@ -1060,14 +1060,14 @@ static void execute_observe(running_machine *machine, int ref, int params, const
/* build up a comma-separated list */
if (exec->device().debug()->observing())
{
- if (buffer.len() == 0)
+ if (!buffer)
buffer.printf("Currently observing CPU '%s'", exec->device().tag());
else
buffer.catprintf(", '%s'", exec->device().tag());
}
/* special message for none */
- if (buffer.len() == 0)
+ if (!buffer)
buffer.printf("Not currently observing any devices");
debug_console_printf(machine, "%s\n", buffer.cstr());
}