From 1ec36fc657f663676f5c30e9548c6102acf28cd8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 16 Nov 2016 05:55:07 +0000 Subject: [PATCH] Add missing newline in OutputDebugStringA invocation. Before this commit, every debug message was correctly printed to stdout, but they were all concatenated onto a single line in the Visual Studio "Output" pane. --- src/platform/w32util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/w32util.cpp b/src/platform/w32util.cpp index 3e08a89..29357e5 100644 --- a/src/platform/w32util.cpp +++ b/src/platform/w32util.cpp @@ -25,6 +25,7 @@ void dbp(const char *str, ...) // The native version of OutputDebugString, unlike most others, // is OutputDebugStringA. OutputDebugStringA(buf); + OutputDebugStringA("\n"); #ifndef NDEBUG // Duplicate to stderr in debug builds, but not in release; this is slow.