--- linux-5.4.1/tools/perf/util/session.c.orig	2019-11-29 04:10:32.000000000 -0500
+++ linux-5.4.1/tools/perf/util/session.c	2020-01-19 16:13:39.628532016 -0500
@@ -88,7 +88,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.4.1/tools/perf/util/zstd.c.orig	2019-11-29 04:10:32.000000000 -0500
+++ linux-5.4.1/tools/perf/util/zstd.c	2020-01-19 16:45:37.908560221 -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, 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;
 		}
