diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-08-20 23:25:01 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-09-01 17:15:21 +0200 |
commit | 20befbb1080307e70c7893ef9840d32e3ef8ac45 (patch) | |
tree | 2e74107ce97cf280d0fe540974b688c359bfcb60 /tools/perf/util/zstd.c | |
parent | MAINTAINERS: Add entries for CoreSight and Arm SPE tooling (diff) | |
download | linux-20befbb1080307e70c7893ef9840d32e3ef8ac45.tar.xz linux-20befbb1080307e70c7893ef9840d32e3ef8ac45.zip |
perf tools: Use %zd for size_t printf formats on 32-bit
A couple of trivial fixes for using %zd for size_t in the code
supporting the ZSTD compression library.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200820212501.24421-1-chris@chris-wilson.co.uk
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/zstd.c')
-rw-r--r-- | tools/perf/util/zstd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/zstd.c b/tools/perf/util/zstd.c index d2202392ffdb..48dd2b018c47 100644 --- a/tools/perf/util/zstd.c +++ b/tools/perf/util/zstd.c @@ -99,7 +99,7 @@ size_t zstd_decompress_stream(struct zstd_data *data, void *src, size_t src_size while (input.pos < input.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", + pr_err("failed to decompress (B): %zd -> %zd, dst_size %zd : %s\n", src_size, output.size, dst_size, ZSTD_getErrorName(ret)); break; } |