[Intel-gfx] [gpu-tools 6/7 v2] drm_open_any: explain why we are abort()ing

przanoni at gmail.com przanoni at gmail.com
Thu Sep 15 21:23:53 CEST 2011


From: Paulo Zanoni <paulo.r.zanoni at intel.com>


Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 lib/drmtest.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index 95df93f..5d5d180 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -64,6 +64,7 @@ int drm_open_any(void)
 
 		close(fd);
 	}
+	fprintf(stderr, "failed to open any drm device (retry as root?)\n");
 	abort();
 }
 
-- 
1.7.4.1




More information about the Intel-gfx mailing list