From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C6C2522198F6C for ; Thu, 28 Dec 2017 17:36:35 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Dec 2017 17:41:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,473,1508828400"; d="scan'208";a="22230878" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 28 Dec 2017 17:41:32 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 28 Dec 2017 17:41:31 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 28 Dec 2017 17:41:31 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Fri, 29 Dec 2017 09:41:30 +0800 From: "Gao, Liming" To: "Wang, Jian J" , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , "Dong, Eric" , "Zeng, Star" Thread-Topic: [edk2] [PATCH] MdeModulePkg/DxePrintLibPrint2Protocol: fix GCC5 build break Thread-Index: AQHTgEYKhyWrLaqTM0O9xWbM94BV4KNZi6xQ Date: Fri, 29 Dec 2017 01:41:30 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E19AEB0@SHSMSX104.ccr.corp.intel.com> References: <20171229014028.14172-1-jian.j.wang@intel.com> In-Reply-To: <20171229014028.14172-1-jian.j.wang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg/DxePrintLibPrint2Protocol: fix GCC5 build break X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2017 01:36:36 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Jia= n >J Wang >Sent: Friday, December 29, 2017 9:40 AM >To: edk2-devel@lists.01.org >Cc: Kinney, Michael D ; Dong, Eric >; Zeng, Star >Subject: [edk2] [PATCH] MdeModulePkg/DxePrintLibPrint2Protocol: fix GCC5 >build break > >Cc: Star Zeng >Cc: Eric Dong >Cc: Michael Kinney >Contributed-under: TianoCore Contribution Agreement 1.1 >Signed-off-by: Jian J Wang >--- > MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c >b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c >index 570d06d82e..0e6178fc9c 100644 >--- a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c >+++ b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c >@@ -2052,7 +2052,7 @@ InternalPrintLibSPrintMarker ( > // > for (Count =3D 0; > ArgumentString[Count * BytesPerArgumentCharacter] !=3D '\0' &= & >- Count < Precision || ((Flags & PRECISION) =3D=3D 0); >+ (Count < Precision || ((Flags & PRECISION) =3D=3D 0)); > Count++) { > ArgumentCharacter =3D ((ArgumentString[Count * >BytesPerArgumentCharacter] & 0xff) | ((ArgumentString[Count * >BytesPerArgumentCharacter + 1]) << 8)) & ArgumentMask; > if (ArgumentCharacter =3D=3D 0) { >-- >2.15.1.windows.2 > >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel