From 1db0da8c8d979195eda39dabadc1d78ab61d0192 Mon Sep 17 00:00:00 2001 From: Diego Nieto Date: Wed, 7 Feb 2024 09:00:47 +0100 Subject: [PATCH] compositor/main: warn pipewire-output and remote-output These warn let to recognize what can be the issue whether pipewire-output or remote-output has been set but its mode it is not. Without this log, if mode is not set, the init just exits Signed-off-by: Diego Nieto --- frontend/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/main.c b/frontend/main.c index d5d3f0b75..cd0628bbf 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -2786,8 +2786,11 @@ remoted_output_init(struct weston_compositor *c, return; weston_config_section_get_string(section, "mode", &modeline, "off"); - if (strcmp(modeline, "off") == 0) + if (strcmp(modeline, "off") == 0) { + weston_log("Would not create a remoted output \"%s\". " + "mode option has not been set or it is set to off.\n", output->name); goto err; + } output = api->create_output(c, output_name); if (!output) { @@ -2919,8 +2922,11 @@ pipewire_output_init(struct weston_compositor *c, return; weston_config_section_get_string(section, "mode", &modeline, "off"); - if (strcmp(modeline, "off") == 0) + if (strcmp(modeline, "off") == 0) { + weston_log("Would not create a pipewire output \"%s\". " + "mode option has not been set or it is set to off.\n", output->name); goto err; + } output = api->create_output(c, output_name); if (!output) {