[Nouveau] [PATCH] fix drmSetMaster error reporting
Ben Skeggs
skeggsb at gmail.com
Sun Feb 13 17:28:26 PST 2011
On Sun, 2011-02-13 at 20:46 +0100, Marcin Slusarz wrote:
> On error, drmSetMaster returns -1 and sets errno.
Pushed.
> ---
> 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;
More information about the Nouveau
mailing list