cygserver: Only print basename of source in debug output to raise readability
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
8d6a522877
commit
838eaf6674
|
@ -63,7 +63,8 @@ _vlog (const char *file, int line, int level,
|
||||||
return;
|
return;
|
||||||
pos = stpcpy (buf, "cygserver: ");
|
pos = stpcpy (buf, "cygserver: ");
|
||||||
if (file && log_debug == TUN_TRUE)
|
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);
|
vsnprintf (pos, 16384 - (pos - buf), fmt, ap);
|
||||||
if (log_syslog == TUN_TRUE && level != LOG_DEBUG)
|
if (log_syslog == TUN_TRUE && level != LOG_DEBUG)
|
||||||
syslog (level, buf);
|
syslog (level, buf);
|
||||||
|
|
Loading…
Reference in New Issue