From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EEE5C433DF for ; Sat, 10 Oct 2020 18:34:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C057224DF for ; Sat, 10 Oct 2020 18:34:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LmV7E3B+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="iJtOcZGh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C057224DF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ldy/k+JF6AybTP69t04RJK/CyW4KElcXq8FOtXO5hBo=; b=LmV7E3B+wsxioCRd/zOpZ3mX5 s4GT9qQnj6nlrllkkmYxt4JFk/Q+8/0dLVZ7Jr3kN+kjjIFHtP2CctzdZlET3uvzj8TvvIU3cd5AE EqkBgX3EKeNU8fdv5QDv7hbeYDBteub6jgQuzeUqHA12OjWuCMLz5nFVWGEPyDkRIxOzahjoE/ohF aJjtmFMep0x6KrdXu8UTCLPaTRPP53btRVH5FmEBTwv7AyhKek5dUf8/B9SgoUbQm1SV4dFW5R+UP t6K3dv4gWpfMMAZikw1rPYzFq5QuOjb6xnXToaKQkCJYuO0Kglz2SVxid/N9SM9n6fMP3Eph639Og K68fMOZlw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kRJfV-0008Mm-Dz; Sat, 10 Oct 2020 18:32:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kRJfS-0008MP-Dn for linux-arm-kernel@lists.infradead.org; Sat, 10 Oct 2020 18:32:31 +0000 Received: from sol.localdomain (172-10-235-113.lightspeed.sntcca.sbcglobal.net [172.10.235.113]) (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 9DC1B224DE; Sat, 10 Oct 2020 18:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602354747; bh=t2YgZVluuf4vryGXDuJmdnGG2MK0FpJGL36ekpajFyQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iJtOcZGh7MXDk3mHCLkO2CpBhVWoNQBXNq6tf8cfsTaZ6DpFprFeTrBnvbRhKd6KR ybWmbC57523Qg3vIUgF/Li8eFfwHMtvyz6IycfzpS+OMD7xzODZfvZAGtGdzMBnyDh 8dyze2Gfxz8If89W7su1tb7C0SbjvOhXaiHWdMoQ= Date: Sat, 10 Oct 2020 11:32:26 -0700 From: Eric Biggers To: Ye Bin Subject: Re: [PATCH] crypto: testmgr - Fix format argument warning Message-ID: <20201010183226.GA1808@sol.localdomain> References: <20201010021637.112091-1-yebin10@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201010021637.112091-1-yebin10@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201010_143230_649556_CC5577CF X-CRM114-Status: GOOD ( 17.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.torgue@st.com, linux-kernel@vger.kernel.org, davem@davemloft.net, linux-crypto@vger.kernel.org, mcoquelin.stm32@gmail.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, herbert@gondor.apana.org.au Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Oct 10, 2020 at 10:16:37AM +0800, Ye Bin wrote: > Fix follow warning: > [crypto/testmgr.c:2317]: (warning) %d in format string (no. 5) requires > 'int' but the argument type is 'unsigned int'. > > Reported-by: Hulk Robot > Signed-off-by: Ye Bin > --- > crypto/testmgr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/crypto/testmgr.c b/crypto/testmgr.c > index a64a639eddfa..aefa4b6b8d78 100644 > --- a/crypto/testmgr.c > +++ b/crypto/testmgr.c > @@ -2315,7 +2315,7 @@ static void generate_random_aead_testvec(struct aead_request *req, > if (vec->setkey_error == 0 && vec->setauthsize_error == 0) > generate_aead_message(req, suite, vec, prefer_inauthentic); > snprintf(name, max_namelen, > - "\"random: alen=%u plen=%u authsize=%u klen=%u novrfy=%d\"", > + "\"random: alen=%u plen=%u authsize=%u klen=%u novrfy=%u\"", > vec->alen, vec->plen, authsize, vec->klen, vec->novrfy); Actually vec->novrfy is 'unsigned char', not 'unsigned int'. Both %u and %d will work, but %d is technically correct because 'unsigned char' gets promoted to 'int'. What tool are you using that claims this is wrong? - Eric _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel