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:
-rw-r--r--winsup/cygserver/bsd_log.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygserver/bsd_log.cc b/winsup/cygserver/bsd_log.cc
index 2ab352665..7c6dcb645 100644
--- a/winsup/cygserver/bsd_log.cc
+++ b/winsup/cygserver/bsd_log.cc
@@ -63,7 +63,8 @@ _vlog (const char *file, int line, int level,
return;
pos = stpcpy (buf, "cygserver: ");
if (file && log_debug == TUN_TRUE)
- pos += snprintf (pos, 16384 - (pos - buf), "%s, line %d: ", file, line);
+ pos += snprintf (pos, 16384 - (pos - buf), "%s, line %d: ",
+ basename ((char *) file), line);
vsnprintf (pos, 16384 - (pos - buf), fmt, ap);
if (log_syslog == TUN_TRUE && level != LOG_DEBUG)
syslog (level, buf);