summaryrefslogtreecommitdiff
path: root/v4l2-apps/util/keytable.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/util/keytable.c')
-rw-r--r--v4l2-apps/util/keytable.c4
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);