[PATCH synaptics] eventcomm: print strerror(errno), not of rc
Dirk Wallenstein
halsmit at t-online.de
Fri Oct 21 00:09:18 PDT 2011
On Fri, Oct 21, 2011 at 04:53:37PM +1000, Peter Hutterer wrote:
> Found by coverity.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> src/eventcomm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/eventcomm.c b/src/eventcomm.c
> index e0a6965..cd08f13 100644
> --- a/src/eventcomm.c
> +++ b/src/eventcomm.c
> @@ -227,7 +227,7 @@ event_get_abs(InputInfoPtr pInfo, int fd, int code,
> SYSCALL(rc = ioctl(fd, EVIOCGABS(code), &abs));
> if (rc < 0) {
> xf86IDrvMsg(pInfo, X_ERROR, "%s EVIOCGABS error on %d (%s)\n",
> - __func__, code, strerror(rc));
> + __func__, code, strerror(errno));
> return errno;
> }
>
> --
> 1.7.6.4
>
Reviewed-by: Dirk Wallenstein <halsmit at t-online.de>
--
Cheers,
Dirk
More information about the xorg-devel
mailing list