mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
improve debug
Improve log so that debug level 3 gives a reasonably readable overview of what is going on.
This commit is contained in:
parent
8ab67c5fa0
commit
aafd1e7298
33 changed files with 141 additions and 125 deletions
|
|
@ -1167,7 +1167,7 @@ static int port_set_format(struct impl *this, struct port *port,
|
|||
int err;
|
||||
|
||||
if (format == NULL) {
|
||||
spa_log_info(this->log, "clear format");
|
||||
spa_log_debug(this->log, "clear format");
|
||||
clear_buffers(this, port);
|
||||
port->have_format = false;
|
||||
} else {
|
||||
|
|
@ -1245,7 +1245,7 @@ impl_node_port_use_buffers(void *object,
|
|||
spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
|
||||
port = &this->port;
|
||||
|
||||
spa_log_info(this->log, "use buffers %d", n_buffers);
|
||||
spa_log_debug(this->log, "use buffers %d", n_buffers);
|
||||
|
||||
if (!port->have_format)
|
||||
return -EIO;
|
||||
|
|
|
|||
|
|
@ -811,7 +811,7 @@ static int port_set_format(struct impl *this, struct port *port,
|
|||
int err;
|
||||
|
||||
if (format == NULL) {
|
||||
spa_log_info(this->log, "clear format");
|
||||
spa_log_debug(this->log, "clear format");
|
||||
clear_buffers(this, port);
|
||||
port->have_format = false;
|
||||
} else {
|
||||
|
|
@ -890,7 +890,7 @@ impl_node_port_use_buffers(void *object,
|
|||
spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
|
||||
port = &this->port;
|
||||
|
||||
spa_log_info(this->log, "use buffers %d", n_buffers);
|
||||
spa_log_debug(this->log, "use buffers %d", n_buffers);
|
||||
|
||||
if (!port->have_format)
|
||||
return -EIO;
|
||||
|
|
|
|||
|
|
@ -1449,7 +1449,7 @@ static int sco_do_accept(struct spa_bt_transport *t)
|
|||
memset(&addr, 0, sizeof(addr));
|
||||
optlen = sizeof(addr);
|
||||
|
||||
spa_log_info(monitor->log, "transport %p: doing accept", t);
|
||||
spa_log_debug(monitor->log, "transport %p: doing accept", t);
|
||||
sock = accept(td->sco.fd, (struct sockaddr *) &addr, &optlen);
|
||||
if (sock < 0) {
|
||||
if (errno != EAGAIN)
|
||||
|
|
@ -1505,7 +1505,7 @@ static int sco_do_connect(struct spa_bt_transport *t)
|
|||
addr.sco_family = AF_BLUETOOTH;
|
||||
bacpy(&addr.sco_bdaddr, &dst);
|
||||
|
||||
spa_log_info(monitor->log, "transport %p: doing connect", t);
|
||||
spa_log_debug(monitor->log, "transport %p: doing connect", t);
|
||||
err = connect(sock, (struct sockaddr *) &addr, len);
|
||||
if (err < 0 && !(errno == EAGAIN || errno == EINPROGRESS)) {
|
||||
spa_log_error(monitor->log, "connect(): %s", strerror(errno));
|
||||
|
|
@ -1621,7 +1621,7 @@ static int sco_listen(struct spa_bt_transport *t)
|
|||
goto fail_close;
|
||||
}
|
||||
|
||||
spa_log_info(monitor->log, "transport %p: doing listen", t);
|
||||
spa_log_debug(monitor->log, "transport %p: doing listen", t);
|
||||
if (listen(sock, 1) < 0) {
|
||||
spa_log_error(monitor->log, "listen(): %m");
|
||||
goto fail_close;
|
||||
|
|
|
|||
|
|
@ -841,7 +841,7 @@ static int port_set_format(struct impl *this, struct port *port,
|
|||
int err;
|
||||
|
||||
if (format == NULL) {
|
||||
spa_log_info(this->log, "clear format");
|
||||
spa_log_debug(this->log, "clear format");
|
||||
clear_buffers(this, port);
|
||||
port->have_format = false;
|
||||
} else {
|
||||
|
|
@ -919,7 +919,7 @@ impl_node_port_use_buffers(void *object,
|
|||
spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
|
||||
port = &this->port;
|
||||
|
||||
spa_log_info(this->log, "use buffers %d", n_buffers);
|
||||
spa_log_debug(this->log, "use buffers %d", n_buffers);
|
||||
|
||||
if (!port->have_format)
|
||||
return -EIO;
|
||||
|
|
|
|||
|
|
@ -738,7 +738,7 @@ static int port_set_format(struct impl *this, struct port *port,
|
|||
int err;
|
||||
|
||||
if (format == NULL) {
|
||||
spa_log_info(this->log, "clear format");
|
||||
spa_log_debug(this->log, "clear format");
|
||||
clear_buffers(this, port);
|
||||
port->have_format = false;
|
||||
} else {
|
||||
|
|
@ -817,7 +817,7 @@ impl_node_port_use_buffers(void *object,
|
|||
spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
|
||||
port = &this->port;
|
||||
|
||||
spa_log_info(this->log, "use buffers %d", n_buffers);
|
||||
spa_log_debug(this->log, "use buffers %d", n_buffers);
|
||||
|
||||
if (!port->have_format)
|
||||
return -EIO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue