[Nouveau] [PATCH] fix drmSetMaster error reporting
Marcin Slusarz
marcin.slusarz at gmail.com
Sun Feb 13 11:46:42 PST 2011
On error, drmSetMaster returns -1 and sets errno.
---
src/nv_driver.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 3e009fc..754739c 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -334,7 +334,7 @@ NVEnterVT(int scrnIndex, int flags)
ret = drmSetMaster(nouveau_device(pNv->dev)->fd);
if (ret)
- ErrorF("Unable to get master: %d\n", ret);
+ ErrorF("Unable to get master: %s\n", strerror(errno));
if (!xf86SetDesiredModes(pScrn))
return FALSE;
--
1.7.4.rc3
More information about the Nouveau
mailing list