From: Mauro Carvalho Chehab Date: Sun, 23 Jan 2011 15:12:55 +0000 (-0200) Subject: ir-keytable: Prints error if get key fails X-Git-Tag: v4l-utils-0.8.2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f82af5f6558631ebf4295ac2ddaea7efe6304ca;p=platform%2Fupstream%2Fv4l-utils.git ir-keytable: Prints error if get key fails Signed-off-by: Mauro Carvalho Chehab --- diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c index ae892207..354de068 100644 --- a/utils/keytable/keytable.c +++ b/utils/keytable/keytable.c @@ -1210,6 +1210,8 @@ static void display_table(struct rc_device *rc_dev, int fd) codes[0] = (j << 8) | i; if (!ioctl(fd, EVIOCGKEYCODE, codes) && codes[1] != KEY_RESERVED) prtcode(codes); + else + perror("EVIOCGKEYCODE"); } } display_proto(rc_dev);