summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-02-28 11:41:47 +0100
committerLuboš Luňák <l.lunak@collabora.com>2019-03-01 11:22:04 +0100
commitb4f9ce195f57a826a56983130ef1920a717797fa (patch)
treea8f618a0b09c10b4d3d48b302b06b2dcde9b8bac /sal
parent3963bab7c1cd31b946646131cdc5576894675293 (diff)
make SAL_DEBUG add newline in Windows debug console too
Change-Id: I7485ab11e4bb60420153ac53784057e5cc905c39 Reviewed-on: https://gerrit.libreoffice.org/68499 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/all/log.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index 1a0d0ada6f1c..92352f48316c 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -336,11 +336,11 @@ void sal_detail_log(
*logFile << s.str() << std::endl;
}
else {
+ s << '\n';
#ifdef _WIN32
// write to Windows debugger console, too
OutputDebugStringA(s.str().c_str());
#endif
- s << '\n';
std::fputs(s.str().c_str(), stderr);
std::fflush(stderr);
}