From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B70A81A2068 for ; Thu, 22 Sep 2016 19:09:16 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 22 Sep 2016 19:09:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,380,1470726000"; d="scan'208";a="1055130270" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 22 Sep 2016 19:09:16 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 22 Sep 2016 19:09:15 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.15]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.118]) with mapi id 14.03.0248.002; Fri, 23 Sep 2016 10:09:13 +0800 From: "Yao, Jiewen" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Zhang, Chao B" , "Zeng, Star" Thread-Topic: [edk2] [PATCH] SecurityPkg Tcg2Pei: Fix GCC build failure caused by 5919a9600e07 Thread-Index: AQHSFT8wAaEuft6QO0S1hm+aF1zP/6CGVGkQ Date: Fri, 23 Sep 2016 02:09:12 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C50386984CE@shsmsx102.ccr.corp.intel.com> References: <1474596401-182748-1-git-send-email-star.zeng@intel.com> In-Reply-To: <1474596401-182748-1-git-send-email-star.zeng@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] SecurityPkg Tcg2Pei: Fix GCC build failure caused by 5919a9600e07 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2016 02:09:16 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: jiewen.yao@intel.com > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Star Zeng > Sent: Friday, September 23, 2016 10:07 AM > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen ; Zhang, Chao B > ; Zeng, Star > Subject: [edk2] [PATCH] SecurityPkg Tcg2Pei: Fix GCC build failure caused= by > 5919a9600e07 >=20 > Cc: Jiewen Yao > Cc: Chao B Zhang > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Star Zeng > --- > SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > index 8bd5f2cfa507..377f8d9fe45b 100644 > --- a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > +++ b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > @@ -229,9 +229,9 @@ SyncPcrAllocationsAndPcrMask ( > if ((TpmActivePcrBanks & Tpm2PcrMask) !=3D TpmActivePcrBanks) { > NewTpmActivePcrBanks =3D TpmActivePcrBanks & Tpm2PcrMask; >=20 > - DEBUG ((EFI_D_INFO, __FUNCTION__" - Reallocating PCR banks from > 0x%X to 0x%X.\n", TpmActivePcrBanks, NewTpmActivePcrBanks )); > + DEBUG ((EFI_D_INFO, "%a - Reallocating PCR banks from 0x%X to > 0x%X.\n", __FUNCTION__, TpmActivePcrBanks, NewTpmActivePcrBanks)); > if (NewTpmActivePcrBanks =3D=3D 0) { > - DEBUG ((EFI_D_ERROR, __FUNCTION__" - No viable PCRs active! > Please set a less restrictive value for PcdTpm2HashMask!\n")); > + DEBUG ((EFI_D_ERROR, "%a - No viable PCRs active! Please set a > less restrictive value for PcdTpm2HashMask!\n", __FUNCTION__)); > ASSERT (FALSE); > } else { > Status =3D Tpm2PcrAllocateBanks (NULL, > (UINT32)TpmHashAlgorithmBitmap, NewTpmActivePcrBanks); > @@ -239,7 +239,7 @@ SyncPcrAllocationsAndPcrMask ( > // > // We can't do much here, but we hope that this doesn't happen. > // > - DEBUG ((EFI_D_ERROR, __FUNCTION__" - Failed to reallocate > PCRs!\n")); > + DEBUG ((EFI_D_ERROR, "%a - Failed to reallocate PCRs!\n", > __FUNCTION__)); > ASSERT_EFI_ERROR (Status); > } > // > @@ -256,9 +256,9 @@ SyncPcrAllocationsAndPcrMask ( > if ((Tpm2PcrMask & TpmHashAlgorithmBitmap) !=3D Tpm2PcrMask) { > NewTpm2PcrMask =3D Tpm2PcrMask & TpmHashAlgorithmBitmap; >=20 > - DEBUG ((EFI_D_INFO, __FUNCTION__" - Updating PcdTpm2HashMask > from 0x%X to 0x%X.\n", Tpm2PcrMask, NewTpm2PcrMask )); > + DEBUG ((EFI_D_INFO, "%a - Updating PcdTpm2HashMask from 0x%X > to 0x%X.\n", __FUNCTION__, Tpm2PcrMask, NewTpm2PcrMask)); > if (NewTpm2PcrMask =3D=3D 0) { > - DEBUG ((EFI_D_ERROR, __FUNCTION__" - No viable PCRs > supported! Please set a less restrictive value for PcdTpm2HashMask!\n")); > + DEBUG ((EFI_D_ERROR, "%a - No viable PCRs supported! Please set > a less restrictive value for PcdTpm2HashMask!\n", __FUNCTION__)); > ASSERT (FALSE); > } >=20 > -- > 2.7.0.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel