Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 934B6C433F5 for ; Fri, 1 Oct 2021 06:00:47 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8DBBB61A55 for ; Fri, 1 Oct 2021 06:00:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8DBBB61A55 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5BA3F81FA9; Fri, 1 Oct 2021 08:00:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1633068044; bh=PI2MoKVAVfXUtq6ax0rQLsqG/1BaUVyKu4uXIUc+my0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=zePTh+DgURSoAOQfcy8zf2rFfF4GoJrmfWIhylapa6EuNZhNtPsNeLXCUCsPwvnzU KZ/bLb1F/+XBCM48uZtOfgieWW+vW2xc8hABbmfcKkUXQPKMk2RLLEr2gIKzD7sTI4 2J7K5hYtunWs8/X3bbxPwhrSPrM+LeHznZuUYDn1beLTEMtwNmPnOtv03aXm08pFLg 3ov1fFx7NJQ3BKdhPK42iI2gD3ZPVSXcdqfPkwK2Bfz9BRgJAmwa91Lkp3fAbL/8l6 kYtbgrMcn6mfserJZMMBZ058syGpVqMhN3Wy/Jzp6XJNo0eElugY7gUJKTMWKFriPg Nffxycm8sJiqg== Received: by phobos.denx.de (Postfix, from userid 109) id 058A481FED; Fri, 1 Oct 2021 08:00:43 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:1::465:107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 27C2781F0C for ; Fri, 1 Oct 2021 08:00:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4HLKGc0RtFzQkKq; Fri, 1 Oct 2021 08:00:40 +0200 (CEST) Subject: Re: [PATCH u-boot-marvell v3 01/39] tools: kwbimage: Fix printf format warning To: =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: u-boot@lists.denx.de, pali@kernel.org, Chris Packham , Baruch Siach , Dennis Gilmore , Mario Six , Jon Nettleton , =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20210924210716.29752-1-kabel@kernel.org> <20210924210716.29752-2-kabel@kernel.org> From: Stefan Roese Message-ID: Date: Fri, 1 Oct 2021 08:00:35 +0200 MIME-Version: 1.0 In-Reply-To: <20210924210716.29752-2-kabel@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: A8EAB181B X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 24.09.21 23:06, Marek Behún wrote: > From: Marek Behún > > On 32-bit ARM the compiler complains: > tools/kwbimage.c:547: warning: format ‘%lu’ expects argument of type > ‘long unsigned int’, but argument 4 has > type ‘unsigned int’ > > Fix this by using %zu instead of %lu format specifier. > > Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan > --- > tools/kwbimage.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/kwbimage.c b/tools/kwbimage.c > index d200ff2425..e72555fe74 100644 > --- a/tools/kwbimage.c > +++ b/tools/kwbimage.c > @@ -542,7 +542,7 @@ static int kwb_export_pubkey(RSA *key, struct pubkey_der_v1 *dst, FILE *hashf, > } > > if (4 + size_seq > sizeof(dst->key)) { > - fprintf(stderr, "export pk failed: seq too large (%d, %lu)\n", > + fprintf(stderr, "export pk failed: seq too large (%d, %zu)\n", > 4 + size_seq, sizeof(dst->key)); > fprintf(stderr, errmsg, keyname); > return -ENOBUFS; > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de