summaryrefslogtreecommitdiff
path: root/src/modules/module-match.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-23 02:27:19 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-23 02:27:19 +0000
commit4a64b0d1167e980d81b798d813f35209895f0674 (patch)
tree52688c3035eadaea2970cb3d07c64b0676c154b8 /src/modules/module-match.c
parentcb59817b4a2e1f640bd9279d0c7863e7a09c1fa6 (diff)
change pa_log() and friends to not require a trailing \n on all logged strings
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@574 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/module-match.c')
-rw-r--r--src/modules/module-match.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/module-match.c b/src/modules/module-match.c
index 1fb7233cc..598175170 100644
--- a/src/modules/module-match.c
+++ b/src/modules/module-match.c
@@ -84,7 +84,7 @@ static int load_rules(struct userdata *u, const char *filename) {
pa_open_config_file(DEFAULT_MATCH_TABLE_FILE, DEFAULT_MATCH_TABLE_FILE_USER, NULL, &fn);
if (!f) {
- pa_log(__FILE__": failed to open file '%s': %s\n", fn, strerror(errno));
+ pa_log(__FILE__": failed to open file '%s': %s", fn, strerror(errno));
goto finish;
}
@@ -111,13 +111,13 @@ static int load_rules(struct userdata *u, const char *filename) {
if (!*v) {
- pa_log(__FILE__ ": [%s:%u] failed to parse line - too few words\n", filename, n);
+ pa_log(__FILE__ ": [%s:%u] failed to parse line - too few words", filename, n);
goto finish;
}
*d = 0;
if (pa_atou(v, &k) < 0) {
- pa_log(__FILE__": [%s:%u] failed to parse volume\n", filename, n);
+ pa_log(__FILE__": [%s:%u] failed to parse volume", filename, n);
goto finish;
}
@@ -125,7 +125,7 @@ static int load_rules(struct userdata *u, const char *filename) {
if (regcomp(&regex, ln, REG_EXTENDED|REG_NOSUB) != 0) {
- pa_log(__FILE__": [%s:%u] invalid regular expression\n", filename, n);
+ pa_log(__FILE__": [%s:%u] invalid regular expression", filename, n);
goto finish;
}
@@ -173,7 +173,7 @@ static void callback(pa_core *c, pa_subscription_event_type_t t, uint32_t idx, v
for (r = u->rules; r; r = r->next) {
if (!regexec(&r->regex, si->name, 0, NULL, 0)) {
pa_cvolume cv;
- pa_log_debug(__FILE__": changing volume of sink input '%s' to 0x%03x\n", si->name, r->volume);
+ pa_log_debug(__FILE__": changing volume of sink input '%s' to 0x%03x", si->name, r->volume);
pa_cvolume_set(&cv, r->volume, si->sample_spec.channels);
pa_sink_input_set_volume(si, &cv);
}
@@ -186,7 +186,7 @@ int pa__init(pa_core *c, pa_module*m) {
assert(c && m);
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
- pa_log(__FILE__": Failed to parse module arguments\n");
+ pa_log(__FILE__": Failed to parse module arguments");
goto fail;
}