From patchwork Thu Apr 8 07:00:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 417406 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp284849jai; Thu, 8 Apr 2021 00:01:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJr3XHg7afqmZCDxq1zwSAWYQFx78cpYzMr0zrmnL3weQigbKF0XrGnx4jzT8GHyZGActX X-Received: by 2002:a17:906:168c:: with SMTP id s12mr8367603ejd.462.1617865285793; Thu, 08 Apr 2021 00:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617865285; cv=none; d=google.com; s=arc-20160816; b=AWlovIEMI24boFnNAuuf72KxLGoARfu94nA2clyATa4e3AkMp68Ei/uSTHs15TQCBr f8tDulXTeRhnlx0h6WMRcvZo9/1qLsYwa7W6swMAviKTMbVxB1ltitdEQq/vEGWfvAal 7hicEZo28PT/5sUjlxW0MiyvJ2MRoy+FD7aUIXMIZeidmjumh5M1nbNCvmmtMAQ3mU1y mdhiIERZdox77r9kpVaRWwEV9HGOssLmLgmgOPYavmCf8z7qXan6d17o9uLRXCnKhlzS PNDdZKL7HMpU0sHVFNL3XXNx0aL7sdnMrkeD62w3I7R63fGhD1pD/qM8gYzqyTJzIQNH gifw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=dG//m0fLQAAszxrFWEo+1AglmmrW0Pi+JgSLHwH+uic=; b=I27cBzwINVan/p9VKvqHkLlVLPqASNxjguy1ZHLbjgqV51CVqZSs6QLePoawnlZ7z9 IVr0vyuWd2+OqHUxVY+4uWrUuMd8DG9JA0eV+cvp2zNYG34FNqEpbcE5FAlczVotYbQg Jp3PEZP7pUWnBSUd3Sj4WSf2ttnjOxEr+vLKzZWDrg2NSsLlJ2Sa2Z1APfwvgaSp/Yk0 SxjusNw8pBVJwLWm5fRCbQHaDJaTpFBhQGj+X9vqc15gDPRb4/Pt9dCOpODQvPoHzjnX axxscxhp2FqqER28mmYsCwoz8+C7qslINlmWhsGDKgkcFEujHvH+ine5UB7dVxWAaAAF rd1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ho20si21663264ejc.295.2021.04.08.00.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 00:01:25 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ADA2281CDE; Thu, 8 Apr 2021 09:01:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 5995581D43; Thu, 8 Apr 2021 09:01:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id C32BE81CAF for ; Thu, 8 Apr 2021 09:01:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 722C31063; Thu, 8 Apr 2021 00:01:11 -0700 (PDT) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0D38E3F73D; Thu, 8 Apr 2021 00:01:09 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Tom Rini , Sughosh Ganu Subject: [PATCH] efi_loader: efi_esrt: Fix the build warning for 32 bit systems Date: Thu, 8 Apr 2021 12:30:55 +0530 Message-Id: <20210408070055.27323-1-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 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.102.4 at phobos.denx.de X-Virus-Status: Clean Fix the build warning when building for 32 bit systems by using the length modifier for size_t. lib/efi_loader/efi_esrt.c: In function ‘efi_esrt_populate’: include/efi_loader.h:126:8: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] Signed-off-by: Sughosh Ganu --- lib/efi_loader/efi_esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Heinrich Schuchardt diff --git a/lib/efi_loader/efi_esrt.c b/lib/efi_loader/efi_esrt.c index 947bdb5e95..8815e56e15 100644 --- a/lib/efi_loader/efi_esrt.c +++ b/lib/efi_loader/efi_esrt.c @@ -341,7 +341,7 @@ efi_status_t efi_esrt_populate(void) return EFI_SUCCESS; } - EFI_PRINT("ESRT populate esrt from (%ld) available FMP handles\n", + EFI_PRINT("ESRT populate esrt from (%zd) available FMP handles\n", no_handles); /*