From 2081116322ea801e35ace24b49d9be048bb18458 Mon Sep 17 00:00:00 2001 From: Andrea Date: Sun, 28 Sep 2025 22:00:00 +0100 Subject: [PATCH] A couple of changes from the linux branch. (PR #1437) * Fix printf format spec. * A fix from the MacOS build. --------- Signed-off-by: Andrea Odetti --- source/Debugger/Debugger_Symbols.cpp | 2 +- source/ParallelPrinter.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Debugger/Debugger_Symbols.cpp b/source/Debugger/Debugger_Symbols.cpp index b5860c09..df401e25 100644 --- a/source/Debugger/Debugger_Symbols.cpp +++ b/source/Debugger/Debugger_Symbols.cpp @@ -635,7 +635,7 @@ int ParseSymbolTable(const std::string & pPathFileName, SymbolTable_Index_e eSym size_t nLen = strlen( sName ); if (nLen > nMaxLen) { - ConsolePrintFormat( " %sWarn.: %s%s %s(%s%d %s> %s%d%s)" + ConsolePrintFormat( " %sWarn.: %s%s %s(%s%" SIZE_T_FMT " %s> %s%d%s)" , CHC_WARNING , CHC_SYMBOL , sName diff --git a/source/ParallelPrinter.cpp b/source/ParallelPrinter.cpp index b1c0eb90..f0418bfa 100644 --- a/source/ParallelPrinter.cpp +++ b/source/ParallelPrinter.cpp @@ -77,13 +77,14 @@ void ParallelPrinterCard::ClosePrint(void) { fclose(m_file); m_file = NULL; +#ifdef _WIN32 std::string ExtendedFileName = "copy \""; ExtendedFileName.append (ParallelPrinterCard::GetFilename()); ExtendedFileName.append ("\" prn"); //if (g_bDumpToPrinter) ShellExecute(NULL, "print", Printer_GetFilename(), NULL, NULL, 0); //Print through Notepad if (m_bDumpToPrinter) system (ExtendedFileName.c_str ()); //Print through console. This is supposed to be the better way, because it shall print images (with older printers only). - +#endif } m_inactivity = 0; }