summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-19 19:04:50 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-19 19:04:50 +0200
commitb9f1af48d2402c197f640bfaed0ca169d2d38cbd (patch)
tree5760c94cf4418ef5f0f7471762304398d0a2e480 /src/pulsecore/log.c
parent6773d000e381651f00c8ffad74cf96e6d0647da9 (diff)
log: print file name only when we have it
Diffstat (limited to 'src/pulsecore/log.c')
-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;