--- 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);
 }