diff options
author | CyberLeo <cyberleo@cyberleo.net> | 2020-03-28 05:45:52 -0500 |
---|---|---|
committer | CyberLeo <cyberleo@cyberleo.net> | 2020-03-28 05:45:52 -0500 |
commit | 9297468fa579836e3a6a381b798feb6b78217c2d (patch) | |
tree | 53168212f427afbcf0693b534530a4af803152e9 /user/mtdev/printf-format.patch | |
parent | a63cc05c53a6f4c22422dc8c69808b14d87a6f6e (diff) | |
parent | da5a69b65a8791fffa6e93366ee585f87eff136d (diff) | |
download | packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.gz packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.bz2 packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.xz packages-9297468fa579836e3a6a381b798feb6b78217c2d.zip |
Merge branch 'master' into zfs
Diffstat (limited to 'user/mtdev/printf-format.patch')
-rw-r--r-- | user/mtdev/printf-format.patch | 19 |
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); + } + |