xfree86: Provide more details on failure
Signed-off-by: Bryce Harrington <bryce@canonical.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
f059d0dabc
commit
d1cc210de8
|
@ -7,6 +7,8 @@
|
|||
#include <xf86drm.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
/* Linux platform device support */
|
||||
#include "xf86_OSproc.h"
|
||||
|
@ -35,7 +37,7 @@ get_drm_info(struct OdevAttributes *attribs, char *path)
|
|||
sv.drm_dd_minor = -1; /* Don't care */
|
||||
err = drmSetInterfaceVersion(fd, &sv);
|
||||
if (err) {
|
||||
ErrorF("setversion 1.4 failed\n");
|
||||
ErrorF("setversion 1.4 failed: %s\n", strerror(-err));
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user