module-device-destore: Log restored port name

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/698>
This commit is contained in:
Igor V. Kovalenko 2022-05-11 10:23:12 +03:00 committed by PulseAudio Marge Bot
parent bb5823a3c9
commit 8bf8a98052

View file

@ -739,7 +739,7 @@ static pa_hook_result_t sink_new_hook_callback(pa_core *c, pa_sink_new_data *new
if (e->port_valid) {
if (!new_data->active_port) {
pa_log_info("Restoring port for sink %s.", name);
pa_log_info("Restoring port '%s' for sink %s.", pa_strnull(e->port), name);
pa_sink_new_data_set_port(new_data, e->port);
new_data->save_port = true;
} else
@ -881,7 +881,7 @@ static pa_hook_result_t source_new_hook_callback(pa_core *c, pa_source_new_data
if (e->port_valid) {
if (!new_data->active_port) {
pa_log_info("Restoring port for source %s.", name);
pa_log_info("Restoring port '%s' for source %s.", pa_strnull(e->port), name);
pa_source_new_data_set_port(new_data, e->port);
new_data->save_port = true;
} else