mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
improve debug
This commit is contained in:
parent
2f6c85cda1
commit
77651881f7
2 changed files with 12 additions and 2 deletions
|
|
@ -28,6 +28,8 @@
|
||||||
#include <pipewire/remote.h>
|
#include <pipewire/remote.h>
|
||||||
#include <pipewire/private.h>
|
#include <pipewire/private.h>
|
||||||
|
|
||||||
|
#include <spa/debug/types.h>
|
||||||
|
|
||||||
/** \cond */
|
/** \cond */
|
||||||
struct proxy {
|
struct proxy {
|
||||||
struct pw_proxy this;
|
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);
|
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;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@
|
||||||
#include "pipewire/protocol.h"
|
#include "pipewire/protocol.h"
|
||||||
#include "pipewire/resource.h"
|
#include "pipewire/resource.h"
|
||||||
|
|
||||||
|
#include <spa/debug/types.h>
|
||||||
|
|
||||||
/** \cond */
|
/** \cond */
|
||||||
struct impl {
|
struct impl {
|
||||||
struct pw_resource this;
|
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);
|
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);
|
pw_client_events_resource_added(client, this);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue