diff options
author | Maarten Bosmans <mkbosmans@gmail.com> | 2011-08-24 20:08:06 +0200 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-08-25 18:19:41 +0530 |
commit | 168254f3bf2a6db08176b5f451a1fc1d886d0f57 (patch) | |
tree | c719d99ab9b6257fdd61616e3a106f60b2fc3438 | |
parent | 35bafe06e70df256d1a3768d17ce155844312e27 (diff) |
echo-cancel: Use stream index in debug message
instead of the less useful stream pointer.
-rw-r--r-- | src/modules/echo-cancel/module-echo-cancel.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c index fe39baa2..62905bdd 100644 --- a/src/modules/echo-cancel/module-echo-cancel.c +++ b/src/modules/echo-cancel/module-echo-cancel.c @@ -1046,7 +1046,7 @@ static void source_output_attach_cb(pa_source_output *o) { pa_source_set_fixed_latency_within_thread(u->source, o->source->thread_info.fixed_latency); pa_source_set_max_rewind_within_thread(u->source, pa_source_output_get_max_rewind(o)); - pa_log_debug("Source output %p attach", o); + pa_log_debug("Source output %d attach", o->index); pa_source_attach_within_thread(u->source); @@ -1076,7 +1076,7 @@ static void sink_input_attach_cb(pa_sink_input *i) { pa_sink_set_max_request_within_thread(u->sink, pa_sink_input_get_max_request(i)); pa_sink_set_max_rewind_within_thread(u->sink, pa_sink_input_get_max_rewind(i)); - pa_log_debug("Sink input %p attach", i); + pa_log_debug("Sink input %d attach", i->index); u->rtpoll_item_write = pa_rtpoll_item_new_asyncmsgq_write( i->sink->thread_info.rtpoll, @@ -1098,7 +1098,7 @@ static void source_output_detach_cb(pa_source_output *o) { pa_source_detach_within_thread(u->source); pa_source_set_rtpoll(u->source, NULL); - pa_log_debug("Source output %p detach", o); + pa_log_debug("Source output %d detach", o->index); if (u->rtpoll_item_read) { pa_rtpoll_item_free(u->rtpoll_item_read); @@ -1117,7 +1117,7 @@ static void sink_input_detach_cb(pa_sink_input *i) { pa_sink_set_rtpoll(u->sink, NULL); - pa_log_debug("Sink input %p detach", i); + pa_log_debug("Sink input %d detach", i->index); if (u->rtpoll_item_write) { pa_rtpoll_item_free(u->rtpoll_item_write); @@ -1133,7 +1133,7 @@ static void source_output_state_change_cb(pa_source_output *o, pa_source_output_ pa_source_output_assert_io_context(o); pa_assert_se(u = o->userdata); - pa_log_debug("Source output %p state %d", o, state); + pa_log_debug("Source output %d state %d", o->index, state); } /* Called from IO thread context */ @@ -1143,7 +1143,7 @@ static void sink_input_state_change_cb(pa_sink_input *i, pa_sink_input_state_t s pa_sink_input_assert_ref(i); pa_assert_se(u = i->userdata); - pa_log_debug("Sink input %p state %d", i, state); + pa_log_debug("Sink input %d state %d", i->index, state); /* If we are added for the first time, ask for a rewinding so that * we are heard right-away. */ @@ -1174,7 +1174,7 @@ static void source_output_kill_cb(pa_source_output *o) { pa_source_unref(u->source); u->source = NULL; - pa_log_debug("Source output kill %p", o); + pa_log_debug("Source output kill %d", o->index); pa_module_unload_request(u->module, TRUE); } @@ -1198,7 +1198,7 @@ static void sink_input_kill_cb(pa_sink_input *i) { pa_sink_unref(u->sink); u->sink = NULL; - pa_log_debug("Sink input kill %p", i); + pa_log_debug("Sink input kill %d", i->index); pa_module_unload_request(u->module, TRUE); } |