Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp161211imn; Mon, 25 Jul 2022 12:40:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vMuhhZEPywZrl29taN0zckZZmX1i80VGN8kCXV2Wez/N8VDX4DTdgqD3vhDC43bH1dcdKn X-Received: by 2002:a17:907:2bf1:b0:72b:5cc3:79cf with SMTP id gv49-20020a1709072bf100b0072b5cc379cfmr11631167ejc.382.1658778057631; Mon, 25 Jul 2022 12:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658778057; cv=none; d=google.com; s=arc-20160816; b=q487/Xjlj6eLc1+a718nHyIIMIN2Y5ZZJkcauYUp4++Of+B5GhtXTBdwyzdVWED1Fu oZ5Tyk/93ArzZeQoiinB7LqFVZyeZcrPiu+TEHulQk4rWzCFDtmi7SHaD9g5Ux7s4qrU eDGxEJMgrXtZbDvMKWC4CMgmv+0YqchnxbcwrZJ8Eu82FFcuv3GjWwXk2N5L098TTNYF fcSCCgi2b4TLNR96npYBSe3+tPKDbD3be1dPzJ7PG81/u1tpdB4G5JRalYfUBq6t6TO2 PRbTnK1z33G4JsED5sFwQEMbohRoB+3LKTTSDP7ezgUSeMIHy5IgWRQEQk9h+RRPlXDd sd2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Nc5mbsO5EttJg9jLfbncA0LC8WA877dNDwcrS6YgrRk=; b=e0dF46P1ZfEgeRdWGWBKnTArnTwqkGL4Z3U78w2TemjqHKbQY3BJxn02w+XeyBcFdp S/bnsSObY3gl6Vt6yJZFsegGahsd8k0SBPJl8132FFGOS3NbVgwpJ4awshKfHnbJ11c0 +rM6Nhu0Z1QDDeqfIvcTG5eTd3Yofvoo3BBh/RrhVBQHDoPF+o3GtURw8RvCWETVlMkP BOIh/jHIgQ0s7jEIDJvdLElCGrpkWz0SMefHjdfeUJuIc+sv1JgxhNjjw2Jm7BmdXj8C bdTVsyWwzHZKHZQ3XCZvqxtOq/K05MFbv+JOUJYMV/CdsIDV+I9Qzl7Hp0kPb7ONckZv sQbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YGNTSezm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs15-20020a170906dc8f00b00717f2a08a2csi29230ejc.169.2022.07.25.12.40.33; Mon, 25 Jul 2022 12:40:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YGNTSezm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236517AbiGYTR7 (ORCPT + 99 others); Mon, 25 Jul 2022 15:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236547AbiGYTR5 (ORCPT ); Mon, 25 Jul 2022 15:17:57 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED041C938 for ; Mon, 25 Jul 2022 12:17:57 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id p1so2789793plr.11 for ; Mon, 25 Jul 2022 12:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nc5mbsO5EttJg9jLfbncA0LC8WA877dNDwcrS6YgrRk=; b=YGNTSezmamE1TT1D0qah9lrebCAcP5hMFvzA1C51qcpj99nL5Dty7RDEpPoUuDlJCc ZS4Yh1J/3pdxcEITiF81+Qwk9HWEgF2NvKTNRQb8jCtGFSuv+j0UqReUu5F4xVzqgwXF WOnP/ikqDjbbBrwZuJrBaAG8U/iRU6DyYhRX8CCi3fmbFlkjFkboKCsmMIn3rW0FxMb6 qWBA9kwVhdlzIAWRcQUTQbXRxmGLDCzhjGAMepi5fAsD6riRSMNupiIgQbtyMaR86IHE 9ogteqHyRL9JD85ArX8hoa5poMe6PXVXbzBrUK7jhOmTF0aQCz6g/hdGuKUOMRWX/pos sj4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nc5mbsO5EttJg9jLfbncA0LC8WA877dNDwcrS6YgrRk=; b=0sWnirJfH2mOKmIez8hW918oNks6k+QzOAG+JWdMghi1EywTSmyoUSk9g4XCeaysQj 8MgmQvnwBc7EJrnMGf2tALZ5VNBv9B783sXy4uzd2Dsrcfv+jwmaaiVz7lUWMXwe/wsp tAP4gHoidP/Up25Ejb5FNSpJkaax50WRtZ3l+gBt/Y468U3X47aM5B+Cj7FmdM05RxTH ZE/aK2LN9knOJ7Sp0PwbrY9GGwnckWcmSBYFgVnz01XJ6Ur4om0/3vkXvdIxMpa26gS+ bLlD93enbgQ5DAML48DMfH4Kz1vkf4ionNkt/OYfbZFlLNkE+xGpKy8ZkBowHZ09AtvI tdEA== X-Gm-Message-State: AJIora9PubRKtibiCgtH4qXqZh3EbVtRQBUsr/IQAIELXXHtfg/geMBH eHtBlvxkg57SZY+z4nW21cUNxIfiPzA= X-Received: by 2002:a17:902:8346:b0:16d:1fb6:3e9c with SMTP id z6-20020a170902834600b0016d1fb63e9cmr13031261pln.28.1658776676149; Mon, 25 Jul 2022 12:17:56 -0700 (PDT) Received: from octofox.hsd1.ca.comcast.net ([2601:641:401:1d20:29f7:d008:e76a:7fb5]) by smtp.gmail.com with ESMTPSA id y22-20020a170902b49600b0016c5306917fsm9608075plr.53.2022.07.25.12.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 12:17:55 -0700 (PDT) From: Max Filippov To: linux-kernel@vger.kernel.org Cc: Hannes Reinecke , linux-nvme@lists.infradead.org, Christoph Hellwig , Sagi Grimberg , Max Filippov Subject: [PATCH] drivers/nvme: fix pr_warn format string Date: Mon, 25 Jul 2022 12:17:51 -0700 Message-Id: <20220725191751.960838-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use %zu format instead of %lu to print variable of size_t type. This fixes the following gcc build error on 32-bit targets: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} Fixes: 71ebe3842ebe ("nvmet-auth: Diffie-Hellman key exchange support") Signed-off-by: Max Filippov --- drivers/nvme/target/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/target/auth.c b/drivers/nvme/target/auth.c index bf92435c783c..716a10ca91d1 100644 --- a/drivers/nvme/target/auth.c +++ b/drivers/nvme/target/auth.c @@ -488,7 +488,7 @@ int nvmet_auth_ctrl_exponential(struct nvmet_req *req, return -ENOKEY; } if (buf_size != ctrl->dh_keysize) { - pr_warn("ctrl %d DH public key size mismatch, need %lu is %d\n", + pr_warn("ctrl %d DH public key size mismatch, need %zu is %d\n", ctrl->cntlid, ctrl->dh_keysize, buf_size); ret = -EINVAL; } else { -- 2.30.2