]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/commitdiff
Make error message more useful
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 6 Aug 2018 10:59:46 +0000 (12:59 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 6 Aug 2018 10:59:46 +0000 (12:59 +0200)
mt_keys.c

index eae093d0b52e20a5ee1dae0cf7c3a9e72f8749b1..9b1dcadf03beb8651cd74fb5c3c6ec38f91793f0 100644 (file)
--- a/mt_keys.c
+++ b/mt_keys.c
@@ -102,7 +102,7 @@ int mt_keys_init(mt_keys_t *self, struct ev_loop *loop, int fd)
 {
     int ev = open("/dev/input/by-path/platform-gpio-keys-event", O_RDONLY);
     if (fd == -1) {
-        perror("open");
+        perror("/dev/input/by-path/platform-gpio-keys-event");
         return -1;
     }