protocol-native: add some more debug

This commit is contained in:
Wim Taymans 2023-04-21 15:05:34 +02:00
parent e75fc459b3
commit bf18ba839f
2 changed files with 3 additions and 0 deletions

View file

@ -285,6 +285,7 @@ process_messages(struct client_data *data)
break; break;
if (client->core_resource == NULL) { if (client->core_resource == NULL) {
pw_log_debug("%p: no core resource", client);
res = -EPROTO; res = -EPROTO;
goto error; goto error;
} }

View file

@ -258,10 +258,12 @@ recv_error:
return -errno; return -errno;
cmsgs_truncated: cmsgs_truncated:
pw_log_debug("connection %p: cmsg truncated", conn);
close_all_fds(&msg, CMSG_FIRSTHDR(&msg)); close_all_fds(&msg, CMSG_FIRSTHDR(&msg));
return -EPROTO; return -EPROTO;
too_many_fds: too_many_fds:
pw_log_debug("connection %p: too many fds", conn);
close_all_fds(&msg, cmsg); close_all_fds(&msg, cmsg);
return -EPROTO; return -EPROTO;
} }