mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
media-session: add log topics to all modules
Media-session itself uses ms.core, there are only two files that could have a sub-topic but right now they don't use it (match-rules and metadata). The modules use the ms.mod.* namespace, so it's trivial to filter on those.
This commit is contained in:
parent
52a96bb602
commit
e3b216c026
26 changed files with 346 additions and 218 deletions
|
|
@ -54,6 +54,9 @@
|
|||
#define SESSION_CONF "bluez-monitor.conf"
|
||||
#define FEATURES_CONF "bluez-hardware.conf"
|
||||
|
||||
PW_LOG_TOPIC_STATIC(mod_topic, "ms.mod." NAME);
|
||||
#define PW_LOG_TOPIC_DEFAULT mod_topic
|
||||
|
||||
struct device;
|
||||
|
||||
struct node {
|
||||
|
|
@ -700,10 +703,10 @@ static void seat_active(void *data, bool active)
|
|||
impl->seat_active = active;
|
||||
|
||||
if (impl->seat_active) {
|
||||
pw_log_info(NAME ": seat active, starting bluetooth");
|
||||
pw_log_info("seat active, starting bluetooth");
|
||||
load_bluez_handle(impl);
|
||||
} else {
|
||||
pw_log_info(NAME ": seat not active, stopping bluetooth");
|
||||
pw_log_info("seat not active, stopping bluetooth");
|
||||
unload_bluez_handle(impl);
|
||||
}
|
||||
}
|
||||
|
|
@ -721,6 +724,8 @@ int sm_bluez5_monitor_start(struct sm_media_session *session)
|
|||
struct impl *impl;
|
||||
const char *str;
|
||||
|
||||
PW_LOG_TOPIC_INIT(mod_topic);
|
||||
|
||||
impl = calloc(1, sizeof(struct impl));
|
||||
if (impl == NULL) {
|
||||
res = -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue