aboutsummaryrefslogtreecommitdiff
path: root/backend/backend.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-28 21:06:41 +0200
committerSimon Ser <contact@emersion.fr>2021-04-28 21:06:41 +0200
commit1c1ef69326caefcebe1dbbdf0abee78ff97f0386 (patch)
tree25610c1dbddfefb4890af84f13d525b10f367332 /backend/backend.c
parentcc1b66364cc9f29456727f9864ee04e57babe8e7 (diff)
Log when WLR_BACKENDS/WLR_RENDERER is set
Makes it easier to figure out why a backend/renderer is picked.
Diffstat (limited to 'backend/backend.c')
-rw-r--r--backend/backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/backend.c b/backend/backend.c
index c7fa043d..11845437 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -237,6 +237,9 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
char *names = getenv("WLR_BACKENDS");
if (names) {
+ wlr_log(WLR_INFO, "Loading user-specified backends due to WLR_BACKENDS: %s",
+ names);
+
names = strdup(names);
if (names == NULL) {
wlr_log(WLR_ERROR, "allocation failed");