mirror of
https://abf.rosa.ru/djam/kernel-6.7-xanmod.git
synced 2025-02-25 01:52:49 +00:00
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From bf7cb8e53df3e47636b6394d901c2c80ee74a674 Mon Sep 17 00:00:00 2001
|
|
From: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
|
Date: Tue, 24 Mar 2020 15:38:40 +0300
|
|
Subject: [PATCH] perf,zstd: use %zu to print size_t values
|
|
|
|
Otherwise the build of a 32-bit kernel complains as follows:
|
|
|
|
In file included from util/session.c:17:0:
|
|
util/session.c: In function 'perf_session__process_compressed_event':
|
|
util/session.c:91:11: error: format '%ld' expects argument of type
|
|
'long int', but argument 4 has type 'size_t {aka unsigned int}' [-Werror=format=]
|
|
pr_debug("decomp (B): %ld to %ld\n", src_size, decomp_size);
|
|
|
|
...and fails.
|
|
|
|
Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
|
---
|
|
tools/perf/util/session.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
|
|
index d0d7d25b23e3..55c3d2fefd41 100644
|
|
--- a/tools/perf/util/session.c
|
|
+++ b/tools/perf/util/session.c
|
|
@@ -88,7 +88,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): %zu to %zu\n", src_size, decomp_size);
|
|
|
|
return 0;
|
|
}
|
|
--
|
|
2.24.0
|
|
|