mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
spa: use log topics everywhere
Use log topics properly everywhere, convert from "#define NAME".
This commit is contained in:
parent
c963ca47c1
commit
e784de3933
27 changed files with 170 additions and 102 deletions
|
|
@ -28,7 +28,9 @@
|
|||
|
||||
#include "jack-client.h"
|
||||
|
||||
#define NAME "jack-device"
|
||||
#undef SPA_LOG_TOPIC_DEFAULT
|
||||
#define SPA_LOG_TOPIC_DEFAULT &log_topic
|
||||
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.jack-device");
|
||||
|
||||
#define MAX_DEVICES 64
|
||||
|
||||
|
|
@ -108,7 +110,7 @@ static int activate_profile(struct impl *this, uint32_t id)
|
|||
|
||||
res = spa_jack_client_open(&this->client, "PipeWire", NULL);
|
||||
if (res < 0) {
|
||||
spa_log_error(this->log, NAME" %p: can't open client: %s",
|
||||
spa_log_error(this->log, "%p: can't open client: %s",
|
||||
this, spa_strerror(res));
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue