mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
log: Fix error message
file_path contains the last tried file name, including the suffix, so
the error message was wrong:
Tried to open target file '/tmp/test.log.99', '/tmp/test.log.99.1',
'/tmp/test.log.99.2' ... '/tmp/test.log.99.99', but all failed.
This commit is contained in:
parent
b0bf132f8f
commit
cffcaaec68
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ int pa_log_set_target(pa_log_target *t) {
|
||||||
|
|
||||||
if (version > LOG_MAX_SUFFIX_NUMBER) {
|
if (version > LOG_MAX_SUFFIX_NUMBER) {
|
||||||
pa_log(_("Tried to open target file '%s', '%s.1', '%s.2' ... '%s.%d', but all failed."),
|
pa_log(_("Tried to open target file '%s', '%s.1', '%s.2' ... '%s.%d', but all failed."),
|
||||||
file_path, file_path, file_path, file_path, LOG_MAX_SUFFIX_NUMBER);
|
t->file, t->file, t->file, t->file, LOG_MAX_SUFFIX_NUMBER);
|
||||||
pa_xfree(file_path);
|
pa_xfree(file_path);
|
||||||
return -1;
|
return -1;
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue