diff --git a/src/fmm.c b/src/fmm.c index 1b70c9e5f0..fdca89067f 100644 --- a/src/fmm.c +++ b/src/fmm.c @@ -1733,10 +1733,10 @@ int open_drm_render_device(int minor) sprintf(path, "/dev/dri/renderD%d", minor); fd = open(path, O_RDWR | O_CLOEXEC); if (fd < 0) { - if (errno != ENOENT) { - if (errno == EPERM) - pr_info("Check a) User is in \"video\" group b) cgroup permissions\n"); + if (errno != ENOENT && errno != EPERM) { pr_err("Failed to open %s: %s\n", path, strerror(errno)); + if (errno == EACCES) + pr_info("Check user is in \"video\" group\n"); } return -errno; }