[pulseaudio-commits] src/pulsecore
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Thu Jun 20 07:23:28 PDT 2013
src/pulsecore/log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit cffcaaec6897b42ca00e1e08d912db6c1c19464c
Author: Tanu Kaskinen <tanu.kaskinen at linux.intel.com>
Date: Thu Jun 20 17:19:15 2013 +0300
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.
diff --git a/src/pulsecore/log.c b/src/pulsecore/log.c
index 1c02097..8066ca5 100644
--- a/src/pulsecore/log.c
+++ b/src/pulsecore/log.c
@@ -155,7 +155,7 @@ int pa_log_set_target(pa_log_target *t) {
if (version > LOG_MAX_SUFFIX_NUMBER) {
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);
return -1;
} else
More information about the pulseaudio-commits
mailing list