summaryrefslogtreecommitdiff
path: root/libre/linux-libre-tools/perf-fix-types.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-tools/perf-fix-types.patch')
-rw-r--r--libre/linux-libre-tools/perf-fix-types.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/libre/linux-libre-tools/perf-fix-types.patch b/libre/linux-libre-tools/perf-fix-types.patch
new file mode 100644
index 000000000..f00e70a7e
--- /dev/null
+++ b/libre/linux-libre-tools/perf-fix-types.patch
@@ -0,0 +1,22 @@
+--- linux-5.2.1.orig/tools/perf/util/session.c 2019-07-14 01:01:15.000000000 -0500
++++ linux-5.2.1/tools/perf/util/session.c 2019-08-13 18:15:10.427948151 -0500
+@@ -76,7 +76,7 @@
+ session->decomp_last = decomp;
+ }
+
+- pr_debug("decomp (B): %ld to %ld\n", src_size, decomp_size);
++ pr_debug("decomp (B): %zd to %zd\n", src_size, decomp_size);
+
+ return 0;
+ }
+--- linux-5.2.1.orig/tools/perf/util/zstd.c 2019-07-14 01:01:15.000000000 -0500
++++ linux-5.2.1/tools/perf/util/zstd.c 2019-08-13 18:32:14.237937462 -0500
+@@ -99,7 +99,7 @@
+ while (input.pos < input.size) {
+ ret = ZSTD_decompressStream(data->dstream, &output, &input);
+ if (ZSTD_isError(ret)) {
+- pr_err("failed to decompress (B): %ld -> %ld : %s\n",
++ pr_err("failed to decompress (B): %zd -> %zd : %s\n",
+ src_size, output.size, ZSTD_getErrorName(ret));
+ break;
+ }