keytable: also print code for unknown/unhandled events
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 14 Dec 2012 17:10:18 +0000 (15:10 -0200)
committerMauro 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

index 16bdfbb..1ff3196 100644 (file)
@@ -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;
                        }
                }