Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-09-29 16:31:22 +0400
committerCorinna Vinschen <corinna@vinschen.de>2003-09-29 16:31:22 +0400
commitd950ca774f5c8e51a6113e694fe670fc5a3576ee (patch)
tree05961bd34b3ef0debf0f21c901f7af189844145b /winsup/cygwin/syslog.cc
parent3c3b1816d84a43ec45e3a5dcdc5ddf03d6b8c500 (diff)
* syslog.cc (vsyslog): Print debug message if ReportEventA fails.
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index f8b17149c..c0a34ca02 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -360,8 +360,9 @@ vsyslog (int priority, const char *message, va_list ap)
debug_printf ("RegisterEventSourceA failed with %E");
return;
}
- ReportEventA (hEventSrc, eventType, 0, 0,
- cygheap->user.sid (), 1, 0, msg_strings, NULL);
+ if (!ReportEventA (hEventSrc, eventType, 0, 0,
+ cygheap->user.sid (), 1, 0, msg_strings, NULL))
+ debug_printf ("ReportEventA failed with %E");
DeregisterEventSource (hEventSrc);
}
else