From 9224c862b2c4c42b375fd58b7d99077439cbe635 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Tue, 1 Mar 2016 18:57:06 +1100 Subject: Move more things to type-safe printf --- src/emu/debug/debugcpu.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/emu/debug/debugcpu.cpp') diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 4bcb66588a9..2b8595b3c30 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -2231,10 +2231,9 @@ void device_debug::go_next_device() // debugger on the next instruction //------------------------------------------------- -void device_debug::halt_on_next_instruction(const char *fmt, ...) +void device_debug::halt_on_next_instruction_impl(util::format_argument_pack &&args) { debugcpu_private *global = m_device.machine().debugcpu_data; - va_list arg; assert(m_exec != nullptr); @@ -2243,9 +2242,7 @@ void device_debug::halt_on_next_instruction(const char *fmt, ...) return; // output the message to the console - va_start(arg, fmt); - debug_console_vprintf(m_device.machine(), fmt, arg); - va_end(arg); + debug_console_vprintf(m_device.machine(), std::move(args)); // if we are live, stop now, otherwise note that we want to break there if (&m_device == global->livecpu) -- cgit v1.2.3