summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-19 19:04:50 +0200
committerColin Guthrie <cguthrie@mandriva.org>2009-06-08 22:31:50 +0100
commita3dba1c2e1667322b878ed22f75aa63f2f4afea5 (patch)
tree5fc987d0fdccb7fa68deb1c2a186f7904cd9e8f2
parent88181bec9544ed038b806d8ef1604f2535263efc (diff)
log: print file name only when we have it
-rw-r--r--src/pulsecore/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/log.c b/src/pulsecore/log.c
index 60ea9c59..919ebe1f 100644
--- a/src/pulsecore/log.c
+++ b/src/pulsecore/log.c
@@ -285,7 +285,7 @@ void pa_log_levelv_meta(
if ((_flags & PA_LOG_PRINT_META) && file && line > 0 && func)
pa_snprintf(location, sizeof(location), "[%s:%i %s()] ", file, line, func);
- else if (_flags & (PA_LOG_PRINT_META|PA_LOG_PRINT_FILE))
+ else if ((_flags & (PA_LOG_PRINT_META|PA_LOG_PRINT_FILE)) && file)
pa_snprintf(location, sizeof(location), "%s: ", pa_path_get_filename(file));
else
location[0] = 0;