mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
log: print file name only when we have it
This commit is contained in:
parent
6773d000e3
commit
b9f1af48d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue