summaryrefslogtreecommitdiff
path: root/lib/win32/emu.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-12-14 23:03:05 +0000
committerChris Wilson <chris+github@qwirx.com>2015-12-14 23:03:05 +0000
commit77f70058713c9003c6507a53e6a3c3ac3ee964f4 (patch)
tree9101c65510e913e20f782e4e809e2fc450d6cdc7 /lib/win32/emu.cpp
parent48c7dd5e90885b42371c5d0153b8f457925fb5cd (diff)
Print the message that we failed to send to the syslog, to make some debugging possible
Diffstat (limited to 'lib/win32/emu.cpp')
-rw-r--r--lib/win32/emu.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp
index 65c12b09..12d6a8b9 100644
--- a/lib/win32/emu.cpp
+++ b/lib/win32/emu.cpp
@@ -1567,16 +1567,14 @@ void syslog(int loglevel, const char *frmt, ...)
if (!sHaveWarnedEventLogFull)
{
printf("Unable to send message to Event Log "
- "(Event Log is full):\r\n");
- fflush(stdout);
+ "(Event Log is full): %s\r\n", buffer);
sHaveWarnedEventLogFull = TRUE;
}
}
else
{
- printf("Unable to send message to Event Log: %s:\r\n",
- GetErrorMessage(winerrno).c_str());
- fflush(stdout);
+ printf("Unable to send message to Event Log: %s: %s\r\n",
+ GetErrorMessage(winerrno).c_str(), buffer);
}
}
else