mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
From afe2e788d1da5d246b1453444d2d9d7dba767cb9 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 54cf163347f7..aceb703e676d 100644
|
|
--- a/tools/perf/util/session.c
|
|
+++ b/tools/perf/util/session.c
|
|
@@ -76,7 +76,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 23bdb9884576..f4382ed3c432 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 : %s\n",
|
|
- src_size, output.size, ZSTD_getErrorName(ret));
|
|
+ (long)src_size, (long)output.size, ZSTD_getErrorName(ret));
|
|
break;
|
|
}
|
|
output.dst = dst + output.pos;
|
|
--
|
|
2.21.0
|
|
|