Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp202560pxa; Fri, 21 Aug 2020 05:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJu7U5cr6tU5p7dZ9pkDJ0Sa+Lgzcw8u2hSjbjVyCda+U0WdUx0dH/xvtx9amQPbY/iOsr X-Received: by 2002:a50:c449:: with SMTP id w9mr2566860edf.65.1598012061453; Fri, 21 Aug 2020 05:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598012061; cv=none; d=google.com; s=arc-20160816; b=rZMn8nrNr42o9vAa2S68cjQ2kbT8+8yTzclacDiGt8b0ztCipkM5XHMKhMXoh03U+T JziABZmZlwy/JtA15pvD8z0pGK8EY947ZWG48vqbIKDNHfIU8WuGiZoIWM4fHINaq2f4 WKoVbtj4J1UJO4ma83TOGuq7hBXhD3Pz5W2C8ow9xG4hHmrJFkY0Igy/MlR06B719YWA 1CcU3yJd6xljkov3vstloDXnPdOxkxksrCVwiDqb8THDUS4MkR9XCNIsRxwE4vVB/iAF 7sZvn/MP5amurITOkdbAo+GQSihXKhUy7EEFqMOBJ5yIU6KM8ECj7WYsvsL3EpLZLDLk U3OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Km0j3vEva6DJMuF6jYrn0tgB9N3KjjTOB2yjkRuxYnc=; b=CztQxYS/x4IxnYXX8wgykhryVsenDUxVuPEs85retoG5q1ZhQ1sDoYfEIsCieIhcAi iGO0+iD+0KttoxonI8UjYD6vEONQqIT7fBN9oGHkUfhHD7t16r7aJZz1x49W2uqKaVPt E5y/mnteV6WHmEFF76A9rIjFTHajfdfsA9RVsUDFCd7LbPi243eASCoVOTxmYgoeumfc tgHdFDNKsXnXSWMWbmvZA90twNmA0iaFGGpUHLEvRkp+kEj9NX4pWR3ZXN+jziP5/vEb PWomepUEkBvcOYRQfCjtqGpIvITYCeBkgVijwwCckrLDI477kQB6ddhnSRYHCtgu6tHg vkJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wyc9WCon; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si1005199eje.650.2020.08.21.05.13.57; Fri, 21 Aug 2020 05:14:21 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Wyc9WCon; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727860AbgHUMNT (ORCPT + 99 others); Fri, 21 Aug 2020 08:13:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:44736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727837AbgHUMNQ (ORCPT ); Fri, 21 Aug 2020 08:13:16 -0400 Received: from quaco.ghostprotocols.net (unknown [177.195.208.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 18A7B2078D; Fri, 21 Aug 2020 12:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598011996; bh=iepkrC52e+w/P9w3zSYEwWNZWt6A/JuNd4RbEzvQ7Vo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wyc9WConBpZi46FFB/+bQTwCjXbF2h0HCT98dbsMXQhuXPFtmajhiLGGFfK3hUwH1 b7Y0bs+8YCJnMyY8yRrJEAsOOHMfEjpsjLgO2NuGo93EjdyLrORyE8SS43MSGQXmH+ klWI41olCD/BFXhqDCtEnm7emK3q66JLTYD6apdo= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id ACDD940D3D; Fri, 21 Aug 2020 09:13:10 -0300 (-03) Date: Fri, 21 Aug 2020 09:13:10 -0300 From: Arnaldo Carvalho de Melo To: Chris Wilson Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Jiri Olsa , Namhyung Kim , Alexey Budankov Subject: Re: [PATCH] perf tools: Use %zd for size_t printf formats on 32b Message-ID: <20200821121310.GF2667554@kernel.org> References: <20200820212501.24421-1-chris@chris-wilson.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200820212501.24421-1-chris@chris-wilson.co.uk> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Aug 20, 2020 at 10:25:01PM +0100, Chris Wilson escreveu: > A couple of trivial fixes for using %zd for size_t. Added Jiri and Namhyung, that are perf tooling reviewers, and Alexey Budankov, that added the ZSTD code. Applied, - Arnaldo > 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 > -- - Arnaldo