From aa11b409c9d3c3483b63830a0cf92660ca619009 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 26 Dec 2013 01:03:53 -0800 Subject: [PATCH 1/1] Use a glob as the default --device: *kbd* --- keystroke-timestamps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystroke-timestamps.c b/keystroke-timestamps.c index 976e37b..36d1cfc 100644 --- a/keystroke-timestamps.c +++ b/keystroke-timestamps.c @@ -13,7 +13,7 @@ int main (int argc, char **argv) { int print_usec = 0; - char* device = strdup("/dev/input/by-path/platform-i8042-serio-0-event-kbd"); + char* device = strdup("/dev/input/by-path/*kbd*"); struct option long_options[] = { {"device", required_argument, 0, 'd' }, {"usec", no_argument, &print_usec, 1 }, -- 2.51.2