From 66d0ef8ed4d7f4de5b104a9c8634b3a3a7bffe92 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 2 Mar 2016 22:22:24 +1100 Subject: Fix some oversights in previous changes, sorry guys'n'gals --- src/emu/debug/debugcmd.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/emu/debug/debugcmd.cpp') diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 9d3135b0cfc..21ed7860a30 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -1329,7 +1329,7 @@ static void execute_bplist(running_machine &machine, int ref, int params, const /* loop over the breakpoints */ for (device_debug::breakpoint *bp = device->debug()->breakpoint_first(); bp != nullptr; bp = bp->next()) { - buffer = string_format("%c%4X @ %*X", bp->enabled() ? ' ' : 'D', bp->index(), device->debug()->logaddrchars(), bp->address()); + buffer = string_format("%c%4X @ %0*X", bp->enabled() ? ' ' : 'D', bp->index(), device->debug()->logaddrchars(), bp->address()); if (std::string(bp->condition()).compare("1") != 0) buffer.append(string_format(" if %s", bp->condition())); if (std::string(bp->action()).compare("") != 0) @@ -1496,7 +1496,7 @@ static void execute_wplist(running_machine &machine, int ref, int params, const /* loop over the watchpoints */ for (device_debug::watchpoint *wp = device->debug()->watchpoint_first(spacenum); wp != nullptr; wp = wp->next()) { - buffer = string_format("%c%4X @ %*X-%*X %s", wp->enabled() ? ' ' : 'D', wp->index(), + buffer = string_format("%c%4X @ %0*X-%0*X %s", wp->enabled() ? ' ' : 'D', wp->index(), wp->space().addrchars(), wp->space().byte_to_address(wp->address()), wp->space().addrchars(), wp->space().byte_to_address_end(wp->address() + wp->length()) - 1, types[wp->type() & 3]); @@ -2308,9 +2308,9 @@ static void execute_cheatlist(running_machine &machine, int ref, int params, con output.clear(); stream_format( output, - " \n" + " \n" " \n" " \n\n", active_cheat, space->logaddrchars(), address, cheat.width * 2, value, @@ -2321,7 +2321,7 @@ static void execute_cheatlist(running_machine &machine, int ref, int params, con else { debug_console_printf( - machine, "Address=%*X Start=%*X Current=%*X\n", + machine, "Address=%0*X Start=%0*X Current=%0*X\n", space->logaddrchars(), address, cheat.width * 2, cheat_byte_swap(&cheat, cheat.cheatmap[cheatindex].first_value) & sizemask, cheat.width * 2, value); @@ -2452,7 +2452,7 @@ static void execute_find(running_machine &machine, int ref, int params, const ch if (match) { found++; - debug_console_printf(machine, "Found at %*X\n", space->addrchars(), (UINT32)space->byte_to_address(i)); + debug_console_printf(machine, "Found at %0*X\n", space->addrchars(), (UINT32)space->byte_to_address(i)); } } @@ -2701,7 +2701,7 @@ static void execute_history(running_machine &machine, int ref, int params, const char buffer[200]; debug->disassemble(buffer, pc, opbuf, argbuf); - debug_console_printf(machine, "%*X: %s\n", space->logaddrchars(), pc, buffer); + debug_console_printf(machine, "%0*X: %s\n", space->logaddrchars(), pc, buffer); } } @@ -2908,14 +2908,14 @@ static void execute_map(running_machine &machine, int ref, int params, const cha { const char *mapname = space->get_handler_string((intention == TRANSLATE_WRITE_DEBUG) ? ROW_WRITE : ROW_READ, taddress); debug_console_printf( - machine, "%7s: %*X logical == %*X physical -> %s\n", + machine, "%7s: %0*X logical == %0*X physical -> %s\n", intnames[intention & 3], space->logaddrchars(), address, space->addrchars(), space->byte_to_address(taddress), mapname); } else - debug_console_printf(machine, "%7s: %*X logical is unmapped\n", intnames[intention & 3], space->logaddrchars(), address); + debug_console_printf(machine, "%7s: %0*X logical is unmapped\n", intnames[intention & 3], space->logaddrchars(), address); } } -- cgit v1.2.3