device-port: Use pa_available_to_string

Replace using the ternary operator with pa_available_to_string to print
value of a pa_available_t.
This commit is contained in:
João Paulo Rechi Vita 2018-08-13 12:31:06 -07:00 committed by Arun Raghavan
parent d983cde529
commit 784853004c

View file

@ -84,8 +84,7 @@ void pa_device_port_set_available(pa_device_port *p, pa_available_t status) {
/* pa_assert(status != PA_AVAILABLE_UNKNOWN); */
p->available = status;
pa_log_debug("Setting port %s to status %s", p->name, status == PA_AVAILABLE_YES ? "yes" :
status == PA_AVAILABLE_NO ? "no" : "unknown");
pa_log_debug("Setting port %s to status %s", p->name, pa_available_to_string(status));
/* Post subscriptions to the card which owns us */
/* XXX: We need to check p->card, because this function may be called