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>2005-12-27 21:10:49 +0300
committerCorinna Vinschen <corinna@vinschen.de>2005-12-27 21:10:49 +0300
commit9e68bb7b50888ba3ff1c2bbcef78e6f6c9f1b4a0 (patch)
tree9998356dfe4d013ff7dce82ff69d821af33c98b0 /winsup/cygwin/syslog.cc
parent22d7108ee5dbd881a6d48855d6de2e425a4d5e3e (diff)
* path.cc (path_conv::check): Rework loop removing trailing dots
and spaces. * syslog.cc (vklog): Set facility to LOG_KERN if not set.
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index fc6758b62..2ea0d6207 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -484,6 +484,8 @@ vklog (int priority, const char *message, va_list ap)
/* TODO: kernel messages are under our control entirely and they should
be quick. No playing with /dev/null, but a fixed upper size for now. */
char buf[2060]; /* 2048 + a prority */
+ if (!(priority & ~LOG_PRIMASK))
+ priority = LOG_KERN | LOG_PRI (priority);
__small_sprintf (buf, "<%d>", priority);
__small_vsprintf (buf + strlen (buf), message, ap);
klog_guard.init ("klog_guard")->acquire ();