From d1cc210de8c13f2db9f6f284ecc652305c28801e Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Tue, 19 Mar 2013 12:12:43 -0700 Subject: [PATCH] xfree86: Provide more details on failure Signed-off-by: Bryce Harrington Reviewed-by: Chris Wilson Signed-off-by: Keith Packard --- hw/xfree86/os-support/linux/lnx_platform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/linux/lnx_platform.c b/hw/xfree86/os-support/linux/lnx_platform.c index 6ee219aed..3ae2db1cf 100644 --- a/hw/xfree86/os-support/linux/lnx_platform.c +++ b/hw/xfree86/os-support/linux/lnx_platform.c @@ -7,6 +7,8 @@ #include #include #include +#include +#include /* 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; }