summaryrefslogtreecommitdiff
path: root/user/mtdev/printf-format.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/mtdev/printf-format.patch')
-rw-r--r--user/mtdev/printf-format.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/user/mtdev/printf-format.patch b/user/mtdev/printf-format.patch
new file mode 100644
index 000000000..46d187f64
--- /dev/null
+++ b/user/mtdev/printf-format.patch
@@ -0,0 +1,19 @@
+--- mtdev-1.1.6/test/mtdev-test.c.old 2020-01-26 14:00:32.000000000 +0000
++++ mtdev-1.1.6/test/mtdev-test.c 2020-01-30 02:17:49.009346559 +0000
+@@ -31,6 +31,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <stdint.h>
++#include <inttypes.h>
+
+ #ifndef input_event_sec
+ #define input_event_sec time.tv_sec
+@@ -56,7 +57,7 @@
+ mstime_t evtime = ev->input_event_usec / ms + ev->input_event_sec * ms;
+ if (ev->type == EV_ABS && ev->code == ABS_MT_SLOT)
+ slot = ev->value;
+- fprintf(stderr, "%012llx %02d %01d %04x %d\n",
++ fprintf(stderr, "%012"PRIx64" %02d %01d %04x %d\n",
+ evtime, slot, ev->type, ev->code, ev->value);
+ }
+