mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-13 13:29:58 -05:00
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:
parent
d983cde529
commit
784853004c
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue