From 784853004c91e3c14fb9b9745dd65126241d579e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= Date: Mon, 13 Aug 2018 12:31:06 -0700 Subject: [PATCH] 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. --- src/pulsecore/device-port.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pulsecore/device-port.c b/src/pulsecore/device-port.c index 5cf4ac639..fb1277215 100644 --- a/src/pulsecore/device-port.c +++ b/src/pulsecore/device-port.c @@ -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