mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Log when WLR_BACKENDS/WLR_RENDERER is set
Makes it easier to figure out why a backend/renderer is picked.
This commit is contained in:
parent
cc1b66364c
commit
1c1ef69326
2 changed files with 6 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue