From 1d4d1291f3d3717440353f53f932d39a5fa9e8ad Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Tue, 6 Jun 2023 09:23:35 -0700 Subject: [PATCH] Debugger: Cleanup add symbol --- source/Debugger/Debugger_Symbols.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/source/Debugger/Debugger_Symbols.cpp b/source/Debugger/Debugger_Symbols.cpp index c5dd4a7b..3a9dd583 100644 --- a/source/Debugger/Debugger_Symbols.cpp +++ b/source/Debugger/Debugger_Symbols.cpp @@ -823,7 +823,7 @@ Update_t _CmdSymbolsClear( SymbolTable_Index_e eSymbolTable ) //=========================================================================== -void SymbolUpdate( SymbolTable_Index_e eSymbolTable, const char *pSymbolName, WORD nAddress, bool bRemoveSymbol, bool bUpdateSymbol ) +void SymbolUpdate ( SymbolTable_Index_e eSymbolTable, const char *pSymbolName, WORD nAddress, bool bRemoveSymbol, bool bUpdateSymbol ) { if (bRemoveSymbol) pSymbolName = g_aArgs[2].sArg; @@ -877,10 +877,14 @@ void SymbolUpdate( SymbolTable_Index_e eSymbolTable, const char *pSymbolName, WO g_aSymbols[ eSymbolTable ][ nAddress ] = pSymbolName; // Tell user symbol was added - ConsolePrintFormat( " Added symbol: %s%s%s %s$%s%04X%s" - , CHC_SYMBOL, pSymbolName, CHC_DEFAULT - , CHC_ARG_SEP - , CHC_ADDRESS, nAddress, CHC_DEFAULT + ConsolePrintFormat( + /*CHC_DEFAULT*/ " Added symbol: " + CHC_SYMBOL "%s" + CHC_DEFAULT " " + CHC_ARG_SEP "$" + CHC_ADDRESS "%04X" + , pSymbolName + , nAddress ); } }