PKGBUILDs/community/linux-tools/0001-perf-fix-debug-printf-for-32-bit.patch
2019-09-16 13:21:22 +00:00

39 lines
1.4 KiB
Diff

From 61bd66f4424d5f216a23c19b1b6133323fc4f6ba Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Sun, 14 Jul 2019 21:34:17 -0600
Subject: [PATCH] perf: fix debug printf for 32-bit
---
tools/perf/util/session.c | 2 +-
tools/perf/util/zstd.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index 37efa1f43d8b..db34760a07bf 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -82,7 +82,7 @@ static int perf_session__process_compressed_event(struct perf_session *session,
session->decomp_last = decomp;
}
- pr_debug("decomp (B): %ld to %ld\n", src_size, decomp_size);
+ pr_debug("decomp (B): %ld to %ld\n", (long)src_size, (long)decomp_size);
return 0;
}
diff --git a/tools/perf/util/zstd.c b/tools/perf/util/zstd.c
index d2202392ffdb..290f048963d6 100644
--- a/tools/perf/util/zstd.c
+++ b/tools/perf/util/zstd.c
@@ -100,7 +100,7 @@ size_t zstd_decompress_stream(struct zstd_data *data, void *src, size_t src_size
ret = ZSTD_decompressStream(data->dstream, &output, &input);
if (ZSTD_isError(ret)) {
pr_err("failed to decompress (B): %ld -> %ld, dst_size %ld : %s\n",
- src_size, output.size, dst_size, ZSTD_getErrorName(ret));
+ (long)src_size, (long)output.size, (long)dst_size, ZSTD_getErrorName(ret));
break;
}
output.dst = dst + output.pos;
--
2.23.0