From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 84DAB82223 for ; Tue, 21 Feb 2017 23:57:30 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP; 21 Feb 2017 23:57:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,193,1484035200"; d="scan'208";a="1133243160" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 21 Feb 2017 23:57:30 -0800 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 21 Feb 2017 23:57:29 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 21 Feb 2017 23:57:29 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Wed, 22 Feb 2017 15:57:27 +0800 From: "Tian, Feng" To: "Fan, Jeff" , "edk2-devel@ml01.01.org" CC: Laszlo Ersek , "Kinney, Michael D" , "Tian, Feng" Thread-Topic: [PATCH] UefiCpuPkg/CpuDxe: Replace EFI_D_xxx with DEBUG_xxx in DEBUG() Thread-Index: AQHSjOEkZ4PvfN7K1E2DZwXAGmjdZKF0qM4g Date: Wed, 22 Feb 2017 07:57:26 +0000 Message-ID: <7F1BAD85ADEA444D97065A60D2E97EE5699B43DC@SHSMSX101.ccr.corp.intel.com> References: <20170222075559.29704-1-jeff.fan@intel.com> In-Reply-To: <20170222075559.29704-1-jeff.fan@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] UefiCpuPkg/CpuDxe: Replace EFI_D_xxx with DEBUG_xxx in DEBUG() 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: Wed, 22 Feb 2017 07:57:30 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Feng Tian Thanks Feng -----Original Message----- From: Fan, Jeff=20 Sent: Wednesday, February 22, 2017 3:56 PM To: edk2-devel@ml01.01.org Cc: Laszlo Ersek ; Tian, Feng ; Kin= ney, Michael D Subject: [PATCH] UefiCpuPkg/CpuDxe: Replace EFI_D_xxx with DEBUG_xxx in DEB= UG() Cc: Laszlo Ersek Cc: Feng Tian Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- UefiCpuPkg/CpuDxe/CpuDxe.c | 8 ++++---- UefiCpuPkg/CpuDxe/CpuMp.c | 6 ++= +--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c index = 1a5a725..2fd2f31 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.c +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c @@ -403,7 +403,7 @@ CpuSetMemoryAttributes ( // to avoid unnecessary computing. // if (mIsFlushingGCD) { - DEBUG((EFI_D_INFO, " Flushing GCD\n")); + DEBUG((DEBUG_INFO, " Flushing GCD\n")); return EFI_SUCCESS; } =20 @@ -979,13 +979,13 @@ IntersectMemoryDescriptor ( IntersectionBase, IntersectionEnd - IntersectionBase, Capabilities); =20 - DEBUG ((EFI_ERROR (Status) ? EFI_D_ERROR : EFI_D_VERBOSE, + DEBUG ((EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE, "%a: %a: add [%Lx, %Lx): %r\n", gEfiCallerBaseName, __FUNCTION__, IntersectionBase, IntersectionEnd, Status)); return Status; } =20 - DEBUG ((EFI_D_ERROR, "%a: %a: desc [%Lx, %Lx) type %u cap %Lx conflicts = " + DEBUG ((DEBUG_ERROR, "%a: %a: desc [%Lx, %Lx) type %u cap %Lx conflicts = " "with aperture [%Lx, %Lx) cap %Lx\n", gEfiCallerBaseName, __FUNCTION__= , Descriptor->BaseAddress, Descriptor->BaseAddress + Descriptor->Length, (UINT32)Descriptor->GcdMemoryType, Descriptor->Capabilities, @@ -1018,= 7 +1018,7 @@ AddMemoryMappedIoSpace ( =20 Status =3D gDS->GetMemorySpaceMap (&NumberOfDescriptors, &MemorySpaceMap= ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: %a: GetMemorySpaceMap(): %r\n", + DEBUG ((DEBUG_ERROR, "%a: %a: GetMemorySpaceMap(): %r\n", gEfiCallerBaseName, __FUNCTION__, Status)); return Status; } diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index 96= 59bd2..4456946 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -1,7 +1,7 @@ /** @file CPU DXE Module to produce CPU MP Protocol. =20 - Copyright (c) 2008 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2008 - 2017, Intel Corporation. All rights=20 + reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e found at @@ -571,7 +571,7 @@ CollectBistDataFromHob ( BspCpuInstance.InfoRecord.IA32HealthFlags.Uint32 =3D SecPlatformInf= ormation->IA32HealthFlags.Uint32; CpuInstance =3D &BspCpuInstance; } else { - DEBUG ((EFI_D_INFO, "Does not find any HOB stored CPU BIST informati= on!\n")); + DEBUG ((DEBUG_INFO, "Does not find any HOB stored CPU BIST=20 + information!\n")); // // Does not find any HOB stored BIST information // @@ -622,7 +622,7 @@ InitializeMpSupport ( =20 MpInitLibGetNumberOfProcessors (&NumberOfProcessors, &NumberOfEnabledPro= cessors); mNumberOfProcessors =3D NumberOfProcessors; - DEBUG ((EFI_D_ERROR, "Detect CPU count: %d\n", mNumberOfProcessors)); + DEBUG ((DEBUG_ERROR, "Detect CPU count: %d\n", mNumberOfProcessors)); =20 // // Update CPU healthy information from Guided HOB -- 2.9.3.windows.2