mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-25 03:17:53 +00:00
Simplify the common combination of sprintf() and OutputDebugString() (PR #1031)
- Update LogOutput() and LogFileOutput(). - Add StrFormat() to produce std::string out of snprintf() & add StrFormat.cpp to projects. - Add PTRDIFF_T_FMT in parallel to SIZE_T_FMT to StdAfx.h, for completeness. - In Log.cpp, changed to get timestamp using posix functions. - Removed TCHAR usage throughout - simply use char.
This commit is contained in:
+1
-3
@@ -339,9 +339,7 @@ static void DebugHddEntrypoint(const USHORT PC)
|
||||
if (!bOldPCAtC7xx /*&& PC != 0xc70a*/)
|
||||
{
|
||||
Count++;
|
||||
char szDebug[100];
|
||||
sprintf(szDebug, "HDD Entrypoint: $%04X\n", PC);
|
||||
OutputDebugString(szDebug);
|
||||
LogOutput("HDD Entrypoint: $%04X\n", PC);
|
||||
}
|
||||
|
||||
bOldPCAtC7xx = true;
|
||||
|
||||
Reference in New Issue
Block a user