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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to