projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57d2c52
)
keytable: also print code for unknown/unhandled events
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 14 Dec 2012 17:10:18 +0000
(15:10 -0200)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 14 Dec 2012 17:10:18 +0000
(15:10 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/keytable/keytable.c
patch
|
blob
|
history
diff --git
a/utils/keytable/keytable.c
b/utils/keytable/keytable.c
index
16bdfbb
..
1ff3196
100644
(file)
--- a/
utils/keytable/keytable.c
+++ b/
utils/keytable/keytable.c
@@
-1319,9
+1319,9
@@
static void test_event(int fd)
ev[i].time.tv_sec, ev[i].time.tv_usec);
break;
default:
- printf("%ld.%06ld: event type %d: value: %d\n",
+ printf("%ld.%06ld: event type %d:
code: 0x%02x,
value: %d\n",
ev[i].time.tv_sec, ev[i].time.tv_usec,
- ev[i].type, ev[i].value);
+ ev[i].type, ev[i].
code, ev[i].
value);
break;
}
}