From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryce Harrington Subject: [PATCH 3/8] xfree86: Provide more details on failure Date: Fri, 15 Mar 2013 11:02:53 -0700 Message-ID: <1363370578-30443-4-git-send-email-bryce@canonical.com> References: <1363370578-30443-1-git-send-email-bryce@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.outflux.net (smtp.outflux.net [198.145.64.163]) by gabe.freedesktop.org (Postfix) with ESMTP id DE889E6ACB for ; Fri, 15 Mar 2013 11:03:16 -0700 (PDT) In-Reply-To: <1363370578-30443-1-git-send-email-bryce@canonical.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org, chris@chris-wilson.co.uk Cc: Bryce Harrington List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Bryce Harrington --- 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 6ee219a..3ae2db1 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; } -- 1.7.9.5