mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
improve debug
This commit is contained in:
parent
539296069d
commit
48036f7d13
3 changed files with 31 additions and 19 deletions
|
|
@ -30,12 +30,14 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <spa/debug/pod.h>
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/pod/builder.h>
|
||||
|
||||
#include <pipewire/pipewire.h>
|
||||
|
||||
#define spa_debug pw_log_debug
|
||||
#include <spa/debug/pod.h>
|
||||
|
||||
#include "connection.h"
|
||||
|
||||
#define MAX_BUFFER_SIZE (1024 * 32)
|
||||
|
|
@ -466,7 +468,7 @@ pw_protocol_native_connection_end(struct pw_protocol_native_connection *conn,
|
|||
buf->n_fds = buf->msg.n_fds;
|
||||
|
||||
if (debug_messages) {
|
||||
fprintf(stderr, ">>>>>>>>> out: id:%d op:%d size:%d seq:%d\n",
|
||||
pw_log_debug(">>>>>>>>> out: id:%d op:%d size:%d seq:%d\n",
|
||||
buf->msg.id, buf->msg.opcode, size, buf->msg.seq);
|
||||
spa_debug_pod(0, NULL, SPA_MEMBER(p, impl->hdr_size, struct spa_pod));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue