improve debug

This commit is contained in:
Wim Taymans 2019-07-17 15:29:18 +02:00
parent 22b67cc95d
commit 53d3d5cb0c
6 changed files with 28 additions and 18 deletions

View file

@ -416,7 +416,8 @@ 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\n", buf->msg.id, buf->msg.opcode, size);
fprintf(stderr, ">>>>>>>>> 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, HDR_SIZE, struct spa_pod));
}

View file

@ -546,7 +546,7 @@ static int core_method_demarshal_destroy(void *object, const struct pw_protocol_
SPA_POD_Int(&id)) < 0)
return -EINVAL;
pw_log_debug("client %p: destroy resource %d", client, id);
pw_log_debug("client %p: destroy resource %u", client, id);
if ((r = pw_client_find_resource(client, id)) == NULL)
goto no_resource;
@ -554,9 +554,9 @@ static int core_method_demarshal_destroy(void *object, const struct pw_protocol_
return pw_resource_notify(resource, struct pw_core_proxy_methods, destroy, 0, r);
no_resource:
pw_log_error("client %p: can't find resouce %d", client, id);
pw_resource_error(resource, -EINVAL, "unknown resource %d", id);
return -EINVAL;
pw_log_error("client %p: unknown resouce %u op:%u", client, id, msg->opcode);
pw_resource_error(resource, -EINVAL, "unknown resource %d op:%u", id, msg->opcode);
return 0;
}
static int registry_method_marshal_add_listener(void *object,