diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index 5ab20652..45a91020 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: debug.cpp,v 1.85 2007-02-25 18:38:00 c2woody Exp $ */ +/* $Id: debug.cpp,v 1.86 2007-05-09 14:35:51 c2woody Exp $ */ #include "dosbox.h" #if C_DEBUG @@ -755,7 +755,7 @@ static void DrawRegisters(void) { } wattrset(dbg.win_reg,0); - mvwprintw(dbg.win_reg,3,60,"%d ",cycle_count); + mvwprintw(dbg.win_reg,3,60,"%u ",cycle_count); wrefresh(dbg.win_reg); }; @@ -805,7 +805,7 @@ static void DrawCode(void) line20[20 - drawsize*2] = ' '; } else waddstr(dbg.win_code,line20); - char* res = 0; + char* res = ""; if (showExtend) res = AnalyzeInstruction(dline, saveSel); // Spacepad it up to 28 characters size_t dline_len = strlen(dline); diff --git a/src/debug/debug_gui.cpp b/src/debug/debug_gui.cpp index 6965055e..fff27f17 100644 --- a/src/debug/debug_gui.cpp +++ b/src/debug/debug_gui.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: debug_gui.cpp,v 1.31 2007-01-08 19:45:39 qbix79 Exp $ */ +/* $Id: debug_gui.cpp,v 1.32 2007-05-09 14:35:51 c2woody Exp $ */ #include "dosbox.h" @@ -106,7 +106,7 @@ void LOG::operator() (char const* format, ...){ if (d_type>=LOG_MAX) return; if ((d_severity!=LOG_ERROR) && (!loggrp[d_type].enabled)) return; - DEBUG_ShowMsg("%10d: %s:%s\n",cycle_count,loggrp[d_type].front,buf); + DEBUG_ShowMsg("%10u: %s:%s\n",cycle_count,loggrp[d_type].front,buf); } @@ -250,6 +250,7 @@ void LOG_StartUp(void) { lowcase(buf); sect->Add_bool(buf,true); } + MSG_Add("LOG_CONFIGFILE_HELP","Logging related options for the debugger.\n"); }