diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-05 00:03:16 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-05 00:03:16 +0000 |
commit | 6c4fd620408b3f14a1d4164d58db70df7a252674 (patch) | |
tree | 3767a0fb76a3941267f9b6980075149dc31cb6bc /polyp/sink.c | |
parent | 57e473b61cf373f8d9befb03d359b999eca4262b (diff) |
implement proper logging
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@179 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sink.c')
-rw-r--r-- | polyp/sink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/polyp/sink.c b/polyp/sink.c index 104248a9..9b8a6492 100644 --- a/polyp/sink.c +++ b/polyp/sink.c @@ -35,6 +35,7 @@ #include "sample-util.h" #include "xmalloc.h" #include "subscribe.h" +#include "log.h" #define MAX_MIX_CHANNELS 32 @@ -77,7 +78,7 @@ struct pa_sink* pa_sink_new(struct pa_core *core, const char *name, int fail, co assert(s->index != PA_IDXSET_INVALID && r >= 0); pa_sample_spec_snprint(st, sizeof(st), spec); - fprintf(stderr, "sink: created %u \"%s\" with sample spec \"%s\"\n", s->index, s->name, st); + pa_log(__FILE__": created %u \"%s\" with sample spec \"%s\"\n", s->index, s->name, st); pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_NEW, s->index); @@ -100,7 +101,7 @@ void pa_sink_free(struct pa_sink *s) { pa_source_free(s->monitor_source); pa_idxset_remove_by_data(s->core->sinks, s, NULL); - fprintf(stderr, "sink: freed %u \"%s\"\n", s->index, s->name); + pa_log(__FILE__": freed %u \"%s\"\n", s->index, s->name); pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_REMOVE, s->index); |