summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Wang <hui.wang@canonical.com>2014-09-26 11:34:28 +0800
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-09-28 13:55:20 +0300
commit0e44b127d0a1fb70803a9bd7b12f8dfcdb80cf58 (patch)
treefa859a38b8a49a3455a0a434169e1fe620a9e04e
parent380a7fc2401ea26151e0383adff05314a263ac31 (diff)
module-switch-on-port-available: make the output more accurate
It is possible that the chosen active_port doesn't equal new_data->active_port, using p->name is more accurate. Please refer to sink_new_hook_callback() Signed-off-by: Hui Wang <hui.wang@canonical.com>
-rw-r--r--src/modules/module-switch-on-port-available.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/module-switch-on-port-available.c b/src/modules/module-switch-on-port-available.c
index b0938d5dd..7397bcc87 100644
--- a/src/modules/module-switch-on-port-available.c
+++ b/src/modules/module-switch-on-port-available.c
@@ -264,8 +264,7 @@ static pa_hook_result_t source_new_hook_callback(pa_core *c, pa_source_new_data
pa_device_port *p = new_sink_source(new_data->ports, new_data->active_port);
if (p) {
- pa_log_debug("Switching initial port for source '%s' to '%s'", new_data->name,
- new_data->active_port);
+ pa_log_debug("Switching initial port for source '%s' to '%s'", new_data->name, p->name);
pa_source_new_data_set_port(new_data, p->name);
}
return PA_HOOK_OK;