Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1572382pxa; Thu, 20 Aug 2020 15:03:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwabc+YYABT7dcUScDFCQ1MHGvnztsq7dbfESyD/fJ82VOnNmNHfpgbbKjHqPYdheQ3Dd+P X-Received: by 2002:a17:907:385:: with SMTP id ss5mr718076ejb.496.1597960991125; Thu, 20 Aug 2020 15:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597960991; cv=none; d=google.com; s=arc-20160816; b=MmzkBaG/oRy7ZRF/0/FU6d6jm2Iqx9yYAW99Blgm5/7nlMy6DM693o1iYb9tLXm6ug 5qK108YNQsesD0GhVSqEhc6oPrmVwxH5vsW2JpqQXGT2dk12+OrHGkVpWrbLwvxX93VT wUeZhnQM6IxnWNZXdgZoFnS199x2b5BJsxjrzIpiLh2RaBVrIZ7w88+fUI8/64ar+JxI RWmagPQyHLaiF7Z6TY6F1Mf0o9SAU8fYA7WC3I3HhAmRhFuBEtoCv7xnLzBHvd3FLih8 z1fl+g3ldXWmVggxCBK1gsu2qaqc/Omo9TfgyhU5rGwCtpvKpN+NHxP+DBcBxX0tjDz7 5cyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=04mU/x10uQ9RKg3dxQN9bEcsU3ySB8s/Xtnwbm6pf2E=; b=u8jFEv7ryOi0I977lcgRMO3QOx9PAjws9YHnMv4Cu3EsQXD/Y0i7Dh3gcJ2uHLnD/a CA6e+WCtoxFhFoCSaBDfHwJbJHEg58EfCz0Hourkqg0dZKjHVdMwRAG0yyX3VyqHzsNd bBAVI3QnP/P1hkg+zd4ME/CHJk4fK9BlPnu52gIVHra741KFR2mgCMkG6qhk4g4LILk6 FsvGLQ/EcbSAk2uIZYcSeOkNy6TgoA+RfPrV2aCZl5Bxu+M3NH1OOs103YiWLyskb29J FuwKckFvXRgOBZdvh1dHjuGyXd/IPLda/uiFjQ/LS1qfBm8K0hNWN8SwyfyDRc2ntss/ oWTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a23si2438097edx.271.2020.08.20.15.02.46; Thu, 20 Aug 2020 15:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728760AbgHTVZa (ORCPT + 99 others); Thu, 20 Aug 2020 17:25:30 -0400 Received: from mail.fireflyinternet.com ([77.68.26.236]:55178 "EHLO fireflyinternet.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726976AbgHTVZa (ORCPT ); Thu, 20 Aug 2020 17:25:30 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from build.alporthouse.com (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP id 22191749-1500050 for multiple; Thu, 20 Aug 2020 22:25:03 +0100 From: Chris Wilson To: linux-kernel@vger.kernel.org Cc: Chris Wilson , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Subject: [PATCH] perf tools: Use %zd for size_t printf formats on 32b Date: Thu, 20 Aug 2020 22:25:01 +0100 Message-Id: <20200820212501.24421-1-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A couple of trivial fixes for using %zd for size_t. Signed-off-by: Chris Wilson Cc: Peter Zijlstra Cc: Ingo Molnar cc: Arnaldo Carvalho de Melo --- 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 ffbc9d35a383..7a5f03764702 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -87,7 +87,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): %zd to %zd\n", src_size, decomp_size); return 0; } 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; } -- 2.20.1