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>2017-03-24 18:12:52 +0300
committerCorinna Vinschen <corinna@vinschen.de>2017-03-24 18:12:52 +0300
commit838eaf6674b1350888b9803290fbf17628ac32ec (patch)
treefb33d923bd6b38414d40f8768ecef1d1540a373f /winsup/cygserver
parent8d6a52287735c9f6d18f26569e5d04070162d83f (diff)
cygserver: Only print basename of source in debug output to raise readability
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygserver')
-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);