diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-29 22:05:06 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-29 22:05:06 -0300 |
commit | ff3dc3830a3899cbad05f00bc72220c47ad35ef6 (patch) | |
tree | 97526fab97065192b5f35d5695648488e2706a81 /v4l2-apps/util | |
parent | 5022fe1de9de096b1b94c17c701a733b068e6c1d (diff) | |
download | mediapointer-dvb-s2-ff3dc3830a3899cbad05f00bc72220c47ad35ef6.tar.gz mediapointer-dvb-s2-ff3dc3830a3899cbad05f00bc72220c47ad35ef6.tar.bz2 |
keytable: Prints a more comprehensive error message
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l2-apps/util')
-rw-r--r-- | v4l2-apps/util/keytable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/v4l2-apps/util/keytable.c b/v4l2-apps/util/keytable.c index 4b39a43f0..d7644d775 100644 --- a/v4l2-apps/util/keytable.c +++ b/v4l2-apps/util/keytable.c @@ -146,8 +146,10 @@ int main (int argc, char *argv[]) codes [1] = (unsigned) value; // printf("\t%04x=%04x\n",codes[0], codes[1]); - if(ioctl(fd, EVIOCSKEYCODE, codes)) + if(ioctl(fd, EVIOCSKEYCODE, codes)) { + fprintf(stderr, "Setting scancode 0x%04x with 0x%04x via ",codes[0], codes[1]); perror ("EVIOCSKEYCODE"); + } if(ioctl(fd, EVIOCGKEYCODE, codes)==0) prtcode(codes); |