improve debug

This commit is contained in:
Wim Taymans 2019-01-10 11:00:50 +01:00
parent 2f6c85cda1
commit 77651881f7
2 changed files with 12 additions and 2 deletions

View file

@ -28,6 +28,8 @@
#include <pipewire/remote.h>
#include <pipewire/private.h>
#include <spa/debug/types.h>
/** \cond */
struct proxy {
struct pw_proxy this;
@ -76,7 +78,10 @@ struct pw_proxy *pw_proxy_new(struct pw_proxy *factory,
spa_list_append(&this->remote->proxy_list, &this->link);
pw_log_debug("proxy %p: new %u, remote %p, marshal %p", this, this->id, remote, this->marshal);
pw_log_debug("proxy %p: new %u %s remote %p, marshal %p",
this, this->id,
spa_debug_type_find_name(pw_type_info(), type),
remote, this->marshal);
return this;
}

View file

@ -29,6 +29,8 @@
#include "pipewire/protocol.h"
#include "pipewire/resource.h"
#include <spa/debug/types.h>
/** \cond */
struct impl {
struct pw_resource this;
@ -72,7 +74,10 @@ struct pw_resource *pw_resource_new(struct pw_client *client,
this->marshal = pw_protocol_get_marshal(client->protocol, type);
pw_log_debug("resource %p: new for client %p id %u", this, client, id);
pw_log_debug("resource %p: new %u %s/%d client %p marshal %p",
this, id,
spa_debug_type_find_name(pw_type_info(), type), version,
client, this->marshal);
pw_client_events_resource_added(client, this);
return this;