mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
protocol: improve debug
This commit is contained in:
parent
71938e6c77
commit
30e5ad2b6a
2 changed files with 3 additions and 3 deletions
|
|
@ -135,7 +135,7 @@ process_messages(struct client_data *data)
|
||||||
msg->opcode, msg->id);
|
msg->opcode, msg->id);
|
||||||
|
|
||||||
if (debug_messages) {
|
if (debug_messages) {
|
||||||
fprintf(stderr, "<<<<<<<<< in: %d %d %d\n", msg->id, msg->opcode, msg->size);
|
fprintf(stderr, "<<<<<<<<< in: id:%d op:%d size:%d\n", msg->id, msg->opcode, msg->size);
|
||||||
spa_debug_pod(0, NULL, (struct spa_pod *)msg->data);
|
spa_debug_pod(0, NULL, (struct spa_pod *)msg->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -517,7 +517,7 @@ on_remote_data(void *data, int fd, uint32_t mask)
|
||||||
this->recv_seq = msg->seq;
|
this->recv_seq = msg->seq;
|
||||||
|
|
||||||
if (debug_messages) {
|
if (debug_messages) {
|
||||||
fprintf(stderr, "<<<<<<<<< in: %d %d %d %d\n",
|
fprintf(stderr, "<<<<<<<<< in: id:%d op:%d size:%d seq:%d\n",
|
||||||
msg->id, msg->opcode, msg->size, msg->seq);
|
msg->id, msg->opcode, msg->size, msg->seq);
|
||||||
spa_debug_pod(0, NULL, (struct spa_pod *)msg->data);
|
spa_debug_pod(0, NULL, (struct spa_pod *)msg->data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -416,7 +416,7 @@ pw_protocol_native_connection_end(struct pw_protocol_native_connection *conn,
|
||||||
buf->n_fds += buf->msg.n_fds;
|
buf->n_fds += buf->msg.n_fds;
|
||||||
|
|
||||||
if (debug_messages) {
|
if (debug_messages) {
|
||||||
fprintf(stderr, ">>>>>>>>> out: %d %d %d\n", buf->msg.id, buf->msg.opcode, size);
|
fprintf(stderr, ">>>>>>>>> out: id:%d op:%d size:%d\n", buf->msg.id, buf->msg.opcode, size);
|
||||||
spa_debug_pod(0, NULL, SPA_MEMBER(p, HDR_SIZE, struct spa_pod));
|
spa_debug_pod(0, NULL, SPA_MEMBER(p, HDR_SIZE, struct spa_pod));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue