summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-01-26 17:09:53 +0000
committerAndras Timar <andras.timar@collabora.com>2016-06-12 22:48:44 +0200
commita59f5fdfb5b2cbb61bd13519d77afc9c1b9df23d (patch)
treedbdfa2db1274ba55d5700d30648f6635c80d7766 /sal/osl
parent2a0a87516fb17bc63515aaeb90e948b0256ac77b (diff)
Write-queue timestamped debugging.
(cherry picked from commit 436745ea87a642789b5960eae7efd8d1e09eb512)
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/all/log.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index 994169aa58b0..fe17931b8be4 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -240,6 +240,9 @@ void log(
syslog(prio, "%s", s.str().c_str());
#endif
} else {
+ TimeValue pTime = { 0, 0 };
+ osl_getSystemTime(&pTime);
+ std::fprintf(stderr, "T%ld.%.9ld - ", (long)pTime.Seconds, (long)pTime.Nanosec);
std::fputs(s.str().c_str(), stderr);
std::fflush(stderr);
}