From patchwork Mon Nov 12 02:37:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 996240 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42tZfb3zJTz9s7h for ; Mon, 12 Nov 2018 13:37:23 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B13F8C222F8; Mon, 12 Nov 2018 02:37:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 5A526C21F5E; Mon, 12 Nov 2018 02:37:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CB515C21F5E; Mon, 12 Nov 2018 02:37:12 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lists.denx.de (Postfix) with ESMTPS id 59900C21DD7 for ; Mon, 12 Nov 2018 02:37:12 +0000 (UTC) Received: from LT02.fritz.box ([84.118.159.3]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0M8NBi-1fZzkK30GA-00vtvf; Mon, 12 Nov 2018 03:37:10 +0100 From: Heinrich Schuchardt To: Alexander Graf Date: Mon, 12 Nov 2018 03:37:05 +0100 Message-Id: <20181112023705.21375-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:B3+MlRb2fDqwi9rE9cDOPkENKSBQdBCa15Xrb3cLdCCDTMl65To OB4woLVJACVEDiAxeb7rnnOkbjcg6/UJIFY5px+tXcNxppeHPZCDLQDDb3rbG/+0MVEfC7E KdxuZ6asTXCGGRdS7Iz/CAJ6rvAWeR99xC4B+t0wbWdzBqyMDMYI0Hp2WwPm3m8Mfypqcte am3Mwmbcp360+U3/rfjBg== X-UI-Out-Filterresults: notjunk:1; V01:K0:kIqM9Lxq1cw=:q48LWfJsrlWmyW7OELG0qy UvWg57gby0XYVFEOWzvSYZuiw9kYJnof9Rtuv0iHset5lKJXiaE4HGtexV4BnKqgXYkkIu0Yp A4BWFE5Tp3d9ApcCydW25gqNSeoZDQvs1hfS7xvmC2hBtjoCfBqgusJU+ojCGTE+9kbWJrbSq ZPoBmLbQd2DTa84MxZtjCSAmUnheOh0txwnmiBsTUvdHpVlFcZgSD5pIa+y8WW007v8Pu42U/ oH+dF6oEMpVMgNY6ELHx9PxYCOE4YnoTk8zS4QUL+9wBguYp/RtphvHdGG3UAC0frkOCxsqyi QB+vkBAE/2I4aNEtq21PRvYpO/L5wa5k5jFjwK4+4uv1pvGnzw/0gA/o9dL7z1KK/71HZ401X 7JpKnJS8ejBLF/alzEtDnhZy9HgdXBiJBYHPdJgLmsep2Lwwz5eraUQuayEBXJnSSMS6KO6Wv /lPDAgFRGc9o1Fi14ZdgWDyxHEl8HUHsba1abquMOO2Ob23K12Scg35X0lTWsMIDDGK8j31QN dfYHGSBVewoAvl4kzA4HV4yS64j1xzK3DvYwwCq/6gzB/3tTrBowF9d/O82QbHRN8jPgiuXXt 3x8Ks6fnkKU6dnl7aQURsMFj17JHnp4qtZeVRcy+6Zu27YmOuPT1arrCnWw9+U7HSP/RG5KSe mDyWiCmM6IpBX8FuFqq2eblypkurAjmXHiCvNYIPM6Zn0t+NauJbKIuh32BENhlqSI3rqtPqn Vy2bCH8ItOvQ1yokk3q9l99MErYKGJUUuXlilNWVkN+SJOjtnOWtX/mOiUb1EuuOxo6SCum8s 5SwBJeGhinnWSfCY8h+iBvfZj0RMUjS6ITJG2+zHlrWMSNAEE+fuYwaZrddfEGy+8R8/IBySG dETa1+cSiRKlG1DefpEV6Y4bSEQ1tKrKM23UH4diI= Cc: u-boot@lists.denx.de, Heinrich Schuchardt Subject: [U-Boot] [PATCH 1/1] efi_loader: do not use unsupported printf code X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Using %zu for efi_intn_t (ssize_t) creates a build warning. Anyway %zu is not supported by efi_st_error(). So let's convert to int. Our implementation of StriColl() only returns -1, 0, or 1. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_unicode_collation.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/efi_selftest/efi_selftest_unicode_collation.c b/lib/efi_selftest/efi_selftest_unicode_collation.c index 9765bd3e44b..75294307d9f 100644 --- a/lib/efi_selftest/efi_selftest_unicode_collation.c +++ b/lib/efi_selftest/efi_selftest_unicode_collation.c @@ -52,7 +52,7 @@ static int test_stri_coll(void) c1, c2); if (ret) { efi_st_error( - "stri_coll(\"%ps\", \"%ps\") = %zu\n", c1, c2, ret); + "stri_coll(\"%ps\", \"%ps\") = %d\n", c1, c2, (int)ret); return EFI_ST_FAILURE; } @@ -60,7 +60,7 @@ static int test_stri_coll(void) c1, c3); if (ret >= 0) { efi_st_error( - "stri_coll(\"%ps\", \"%ps\") = %zu\n", c1, c3, ret); + "stri_coll(\"%ps\", \"%ps\") = %d\n", c1, c3, (int)ret); return EFI_ST_FAILURE; } @@ -68,7 +68,7 @@ static int test_stri_coll(void) c3, c1); if (ret <= 0) { efi_st_error( - "stri_coll(\"%ps\", \"%ps\") = %zu\n", c3, c1, ret); + "stri_coll(\"%ps\", \"%ps\") = %d\n", c3, c1, (int)ret); return EFI_ST_FAILURE; }