aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-26 16:27:24 +0200
committerSimon Ser <contact@emersion.fr>2021-04-26 16:27:24 +0200
commit5c699f09cb7cc7bf9d93756f1fa4227ffffe25fe (patch)
treee490d795f3a7e47d70c3a472eed4a63a5bb4e3c6 /render
parentaf78ecb86ba7cc59a2c1acd90664a5d4ba56ebdc (diff)
Log drmGetDevices2 error code
Diffstat (limited to 'render')
-rw-r--r--render/egl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/egl.c b/render/egl.c
index 94f288f6..e2551268 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -704,7 +704,7 @@ static char *get_render_name(const char *name) {
uint32_t flags = 0;
int devices_len = drmGetDevices2(flags, NULL, 0);
if (devices_len < 0) {
- wlr_log(WLR_ERROR, "drmGetDevices2 failed");
+ wlr_log(WLR_ERROR, "drmGetDevices2 failed: %s", strerror(-devices_len));
return NULL;
}
drmDevice **devices = calloc(devices_len, sizeof(drmDevice *));
@@ -715,7 +715,7 @@ static char *get_render_name(const char *name) {
devices_len = drmGetDevices2(flags, devices, devices_len);
if (devices_len < 0) {
free(devices);
- wlr_log(WLR_ERROR, "drmGetDevices2 failed");
+ wlr_log(WLR_ERROR, "drmGetDevices2 failed: %s", strerror(-devices_len));
return NULL;
}