From: Corinna Vinschen Date: Fri, 24 Mar 2017 15:12:52 +0000 (+0100) Subject: cygserver: Only print basename of source in debug output to raise readability X-Git-Tag: cygwin-2_8_0-release~12 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=838eaf6674b1350888b9803290fbf17628ac32ec;p=newlib-cygwin.git cygserver: Only print basename of source in debug output to raise readability Signed-off-by: Corinna Vinschen --- 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);