Skip to contentSkip to conversation

drm_open_any: explain why we are abort()ing

PATCH New [email protected] 1 participant 2 messages Sep 15, 2011 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 6/7 drm_open_any: explain why we are abort()ing

From: Paulo Zanoni <[email protected]>

---
 lib/drmtest.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
lib/drmtest.c +1 -0
index 95df93f..7e2c3fe 100644
@@ -64,6 +64,7 @@ int drm_open_any(void)
 
 		close(fd);
 	}
+	fprintf(stderr, "failed to open any drm device\n");
 	abort();
 }
 
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH v2 6/7 drm_open_any: explain why we are abort()ing

From: Paulo Zanoni <[email protected]>

---
 lib/drmtest.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
lib/drmtest.c +1 -0
index 95df93f..5d5d180 100644
@@ -64,6 +64,7 @@ int drm_open_any(void)
 
 		close(fd);
 	}
+	fprintf(stderr, "failed to open any drm device (retry as root?)\n");
 	abort();
 }
 
Signature · 1 line
1.7.4.1