From nobody Wed May 1 22:55:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58282+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58282+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1588119689; cv=none; d=zohomail.com; s=zohoarc; b=P+uYvHDStkL7C+VrntIPL1Mxj9/IZ9q2CPoJwTUL3+ECJRpr0P0WkSKJlDsfm1maLzZ5lpwD+KoKdVgt9t57pXjGqhABDjT5ZlqjkzuKtMZ7CcbX0vf28LXT1CNIMPB00WT4GAqIMkcPuzs7m3EP7WgSwl80KK5O22NjQcA2o+k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588119689; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=9CJzJapPoX5XjRdaD0LngVarDXIl2zc7FBstHCIXKuI=; b=ejtCKJdk7zAwzpqBzLGerxNiVIt88FOUky1KGBNBs3r4bg9Ed6uuWjd3P2loAc1TuAaLZCol61QWyXl9MnQ7c/Uk7AZNarkKMd//VbtSTCXOkGXbSb/klRuCcIZF4vb6SPMTM+aIQsgUORuMrELoxziZTcJy3m/D2aRDEVcKvfo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58282+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588119689400981.7274115250916; Tue, 28 Apr 2020 17:21:29 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id ROCpYY1788612x65qJLWaQyy; Tue, 28 Apr 2020 17:21:28 -0700 X-Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by mx.groups.io with SMTP id smtpd.web11.1597.1588119686448770590 for ; Tue, 28 Apr 2020 17:21:26 -0700 X-Received: from in01.mta.xmission.com ([166.70.13.51]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTaTd-00064R-LZ; Tue, 28 Apr 2020 18:21:25 -0600 X-Received: from mta3.zcs.xmission.com ([166.70.13.67]) by in01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jTaTX-0008W3-Sl; Tue, 28 Apr 2020 18:21:25 -0600 X-Received: from localhost (localhost [127.0.0.1]) by mta3.zcs.xmission.com (Postfix) with ESMTP id B5688160B0D; Tue, 28 Apr 2020 18:21:19 -0600 (MDT) X-Amavis-Modified: Mail body modified (using disclaimer) - mta3.zcs.xmission.com X-Received: from mta3.zcs.xmission.com ([127.0.0.1]) by localhost (mta3.zcs.xmission.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id N6v46mxdFotF; Tue, 28 Apr 2020 18:21:19 -0600 (MDT) X-Received: from photon.int.bluestop.org (muon.bluestop.org [65.103.231.193]) (Authenticated sender: rebecca@bsdio.com) by mta3.zcs.xmission.com (Postfix) with ESMTPSA id 30321160E58; Tue, 28 Apr 2020 18:21:19 -0600 (MDT) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Jordan Justen , Ard Biesheuvel , Laszlo Ersek , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Rebecca Cran Date: Tue, 28 Apr 2020 18:20:49 -0600 Message-Id: <20200429002049.570789-2-rebecca@bsdio.com> In-Reply-To: <20200429002049.570789-1-rebecca@bsdio.com> References: <20200429002049.570789-1-rebecca@bsdio.com> MIME-Version: 1.0 X-XM-SPF: eid=1jTaTX-0008W3-Sl;;;mid=<20200429002049.570789-2-rebecca@bsdio.com>;;;hst=in01.mta.xmission.com;;;ip=166.70.13.67;;;frm=rebecca@bsdio.com;;;spf=pass X-SA-Exim-Connect-IP: 166.70.13.67 X-SA-Exim-Mail-From: rebecca@bsdio.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa06.xmission.com X-Spam-Level: *********** X-Spam-Status: Yes, score=11.0 required=8.0 tests=ALL_TRUSTED,BAYES_80, DCC_CHECK_NEGATIVE,FVGT_m_MULTI_ODD,LotsOfNums_01,TM2_M_VERY_LONG_WORD, T_TooManySym_01,XMBrknScrpt_02,XMSubLong,XMSubMetaSx_00,XM_B_Phish66, XM_B_Phish_Phrases,XM_Sft_Co_L33T autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 3.3 BAYES_80 BODY: Bayes spam probability is 80 to 95% * [score: 0.9283] * 0.7 XMSubLong Long Subject * 1.2 LotsOfNums_01 BODY: Lots of long strings of numbers * 1.0 TM2_M_VERY_LONG_WORD BODY: Very long word (longer than 40 * chars) * 2.0 XM_B_Phish66 BODY: Obfuscated XMission * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; IP=ok Body=1 Fuz1=1] [Fuz2=1] * 0.4 XMBrknScrpt_02 Possible Broken Spam Script * 1.0 XM_Sft_Co_L33T No description available. * 0.4 FVGT_m_MULTI_ODD Contains multiple odd letter combinations * 1.0 XMSubMetaSx_00 1+ Sexy Words * 1.0 XM_B_Phish_Phrases Commonly used Phishing Phrases * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa06 1397; IP=ok Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***********;devel@edk2.groups.io X-Spam-Relay-Country: X-Spam-Timing: total 5378 ms - load_scoreonly_sql: 0.15 (0.0%), signal_user_changed: 14 (0.3%), b_tie_ro: 12 (0.2%), parse: 7 (0.1%), extract_message_metadata: 82 (1.5%), get_uri_detail_list: 57 (1.1%), tests_pri_-1000: 28 (0.5%), tests_pri_-950: 1.52 (0.0%), tests_pri_-900: 1.27 (0.0%), tests_pri_-90: 377 (7.0%), check_bayes: 374 (7.0%), b_tokenize: 200 (3.7%), b_tok_get_all: 66 (1.2%), b_comp_prob: 13 (0.2%), b_tok_touch_all: 84 (1.6%), b_finish: 1.22 (0.0%), tests_pri_0: 4831 (89.8%), check_dkim_signature: 3.8 (0.1%), check_dkim_adsp: 2.6 (0.0%), poll_dns_idle: 0.38 (0.0%), tests_pri_10: 3.6 (0.1%), tests_pri_500: 19 (0.3%), rewrite_mail: 0.00 (0.0%) Subject: [edk2-devel] [PATCH v2 1/1] OvmfPkg: replace old EFI_D_ debug levels with new DEBUG_ ones X-Spam-Flag: YES X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: <27952.devel.edk2.groups.io> Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,rebecca@bsdio.com X-Gm-Message-State: 6yqanPokAKrxcMBYIIEiO1Lwx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588119688; bh=KuyGJ/6mPrEEhLtXLlKu6vwre2I9QP9P5Vp8pw/QA5s=; h=Cc:Date:From:Reply-To:Subject:To; b=iGFTCTAq3EQPjo6ptmNRZLcTlgY3ro3EH/0G4EwlM0qjTmdIiXRtK04eqgopVrhKvj8 m/mteItaLf3AfSmIlbw8RZmn+BvuqWCnc/prpk7QAKfKUdq64G2L22cb6PkvRgDG4dYSg Jos3IKgnA8NhnruQDEF/eqmBkciEiXRnWXs= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Signed-off-by: Rebecca Cran Reviewed-by: Philippe Mathieu-Daude Acked-by: Laszlo Ersek Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel --- OvmfPkg/AcpiPlatformDxe/EntryPoint.c | 8 +- OvmfPkg/AcpiPlatformDxe/PciDecoding.c | 10 +-- OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c | 32 ++++---- OvmfPkg/Csm/BiosThunk/VideoDxe/BiosVideo.c | 16 ++-- OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.c | 2 +- OvmfPkg/Csm/CsmSupportLib/LegacyPlatform.c | 2 +- OvmfPkg/Csm/CsmSupportLib/LegacyRegion.c | 2 +- OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c | 18 ++--- OvmfPkg/Csm/LegacyBiosDxe/LegacyBootSupport.c | 80 +++++++++---------- OvmfPkg/Csm/LegacyBiosDxe/LegacyPci.c | 58 +++++++------- OvmfPkg/Csm/LegacyBiosDxe/LegacySio.c | 2 +- OvmfPkg/Csm/LegacyBiosDxe/Thunk.c | 2 +- .../LegacyBootMaintUiLib/LegacyBootMaintUi.c | 2 +- OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c | 6 +- OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c | 16 ++-- .../IncompatiblePciDeviceSupport.c | 2 +- .../Library/AcpiTimerLib/BaseAcpiTimerLib.c | 2 +- .../AcpiTimerLib/BaseRomAcpiTimerLib.c | 4 +- .../Library/AcpiTimerLib/DxeAcpiTimerLib.c | 2 +- OvmfPkg/Library/LoadLinuxLib/Linux.c | 8 +- OvmfPkg/Library/NvVarsFileLib/FsAccess.c | 16 ++-- .../PciHostBridgeLib/PciHostBridgeLib.c | 18 ++--- .../PlatformBootManagerLib/BdsPlatform.c | 30 +++---- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxe.c | 6 +- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 2 +- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c | 6 +- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSec.c | 8 +- .../SerializeVariablesLib.c | 2 +- .../SmbiosVersionLib/DetectSmbiosVersionLib.c | 4 +- .../VirtioMmioDeviceLib/VirtioMmioDevice.c | 2 +- .../Library/XenHypercallLib/XenHypercall.c | 2 +- OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.c | 4 +- OvmfPkg/PlatformDxe/Platform.c | 6 +- OvmfPkg/PlatformPei/FeatureControl.c | 4 +- OvmfPkg/PlatformPei/Fv.c | 2 +- OvmfPkg/PlatformPei/MemDetect.c | 10 +-- OvmfPkg/PlatformPei/Platform.c | 22 ++--- OvmfPkg/PlatformPei/Xen.c | 4 +- .../FwBlockService.c | 10 +-- .../FwBlockServiceDxe.c | 4 +- .../FwBlockServiceSmm.c | 2 +- .../QemuFlash.c | 14 ++-- OvmfPkg/QemuVideoDxe/Driver.c | 10 +-- OvmfPkg/QemuVideoDxe/Gop.c | 4 +- OvmfPkg/QemuVideoDxe/Initialize.c | 8 +- OvmfPkg/QemuVideoDxe/VbeShim.c | 4 +- OvmfPkg/SataControllerDxe/SataController.c | 12 +-- OvmfPkg/Sec/SecMain.c | 22 ++--- OvmfPkg/SmmAccess/SmmAccessPei.c | 4 +- OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c | 16 ++-- OvmfPkg/VirtioGpuDxe/Commands.c | 8 +- OvmfPkg/VirtioGpuDxe/DriverBinding.c | 8 +- OvmfPkg/VirtioGpuDxe/VirtioGpu.h | 2 +- OvmfPkg/XenBusDxe/EventChannel.c | 2 +- OvmfPkg/XenBusDxe/GrantTable.c | 8 +- OvmfPkg/XenBusDxe/XenBus.c | 14 ++-- OvmfPkg/XenBusDxe/XenBusDxe.c | 4 +- OvmfPkg/XenBusDxe/XenStore.c | 28 +++---- OvmfPkg/XenIoPciDxe/XenIoPciDxe.c | 2 +- OvmfPkg/XenPvBlkDxe/BlockFront.c | 50 ++++++------ OvmfPkg/XenPvBlkDxe/BlockIo.c | 6 +- OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.c | 2 +- 62 files changed, 333 insertions(+), 333 deletions(-) diff --git a/OvmfPkg/AcpiPlatformDxe/EntryPoint.c b/OvmfPkg/AcpiPlatformDxe= /EntryPoint.c index 4fd7abc0b421..f66f89291157 100644 --- a/OvmfPkg/AcpiPlatformDxe/EntryPoint.c +++ b/OvmfPkg/AcpiPlatformDxe/EntryPoint.c @@ -39,12 +39,12 @@ OnRootBridgesConnected ( { EFI_STATUS Status; =20 - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "%a: root bridges have been connected, installing ACPI tables\n", __FUNCTION__)); Status =3D InstallAcpiTables (FindAcpiTableProtocol ()); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: InstallAcpiTables: %r\n", __FUNCTION__, Stat= us)); + DEBUG ((DEBUG_ERROR, "%a: InstallAcpiTables: %r\n", __FUNCTION__, Stat= us)); } gBS->CloseEvent (Event); } @@ -66,7 +66,7 @@ AcpiPlatformEntryPoint ( // the full functionality. // if (PcdGetBool (PcdPciDisableBusEnumeration)) { - DEBUG ((EFI_D_INFO, "%a: PCI or its enumeration disabled, installing " + DEBUG ((DEBUG_INFO, "%a: PCI or its enumeration disabled, installing " "ACPI tables\n", __FUNCTION__)); return InstallAcpiTables (FindAcpiTableProtocol ()); } @@ -81,7 +81,7 @@ AcpiPlatformEntryPoint ( OnRootBridgesConnected, NULL /* Context */, &gRootBridgesConnectedEventGroupGuid, &RootBridgesConnec= ted); if (!EFI_ERROR (Status)) { - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "%a: waiting for root bridges to be connected, registered callback\n= ", __FUNCTION__)); } diff --git a/OvmfPkg/AcpiPlatformDxe/PciDecoding.c b/OvmfPkg/AcpiPlatformDx= e/PciDecoding.c index eb0417bba40c..73894106c9ec 100644 --- a/OvmfPkg/AcpiPlatformDxe/PciDecoding.c +++ b/OvmfPkg/AcpiPlatformDxe/PciDecoding.c @@ -69,14 +69,14 @@ EnablePciDecoding ( } =20 if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_WARN, "%a: LocateHandleBuffer(): %r\n", __FUNCTION__, + DEBUG ((DEBUG_WARN, "%a: LocateHandleBuffer(): %r\n", __FUNCTION__, Status)); return; } =20 OrigAttrs =3D AllocatePool (NoHandles * sizeof *OrigAttrs); if (OrigAttrs =3D=3D NULL) { - DEBUG ((EFI_D_WARN, "%a: AllocatePool(): out of resources\n", + DEBUG ((DEBUG_WARN, "%a: AllocatePool(): out of resources\n", __FUNCTION__)); goto FreeHandles; } @@ -99,7 +99,7 @@ EnablePciDecoding ( Status =3D PciIo->Attributes (PciIo, EfiPciIoAttributeOperationGet, 0, &OrigAttrs[Idx].PciAttributes); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationGet: %r\n", + DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationGet: %r\n", __FUNCTION__, Status)); goto RestoreAttributes; } @@ -110,7 +110,7 @@ EnablePciDecoding ( Status =3D PciIo->Attributes (PciIo, EfiPciIoAttributeOperationSupport= ed, 0, &Attributes); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationSupported: %r\n", + DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationSupported: %r\n", __FUNCTION__, Status)); goto RestoreAttributes; } @@ -122,7 +122,7 @@ EnablePciDecoding ( Status =3D PciIo->Attributes (PciIo, EfiPciIoAttributeOperationEnable, Attributes, NULL); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationEnable: %r\n", + DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationEnable: %r\n", __FUNCTION__, Status)); goto RestoreAttributes; } diff --git a/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c b/OvmfPkg/AcpiPlatform= Dxe/QemuFwCfgAcpi.c index 75a3a88a3612..526b49501eeb 100644 --- a/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c +++ b/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c @@ -329,19 +329,19 @@ ProcessCmdAllocate ( BLOB *Blob; =20 if (Allocate->File[QEMU_LOADER_FNAME_SIZE - 1] !=3D '\0') { - DEBUG ((EFI_D_ERROR, "%a: malformed file name\n", __FUNCTION__)); + DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__)); return EFI_PROTOCOL_ERROR; } =20 if (Allocate->Alignment > EFI_PAGE_SIZE) { - DEBUG ((EFI_D_ERROR, "%a: unsupported alignment 0x%x\n", __FUNCTION__, + DEBUG ((DEBUG_ERROR, "%a: unsupported alignment 0x%x\n", __FUNCTION__, Allocate->Alignment)); return EFI_UNSUPPORTED; } =20 Status =3D QemuFwCfgFindFile ((CHAR8 *)Allocate->File, &FwCfgItem, &FwCf= gSize); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: QemuFwCfgFindFile(\"%a\"): %r\n", __FUNCTION= __, + DEBUG ((DEBUG_ERROR, "%a: QemuFwCfgFindFile(\"%a\"): %r\n", __FUNCTION= __, Allocate->File, Status)); return Status; } @@ -372,7 +372,7 @@ ProcessCmdAllocate ( =20 Status =3D OrderedCollectionInsert (Tracker, NULL, Blob); if (Status =3D=3D RETURN_ALREADY_STARTED) { - DEBUG ((EFI_D_ERROR, "%a: duplicated file \"%a\"\n", __FUNCTION__, + DEBUG ((DEBUG_ERROR, "%a: duplicated file \"%a\"\n", __FUNCTION__, Allocate->File)); Status =3D EFI_PROTOCOL_ERROR; } @@ -432,14 +432,14 @@ ProcessCmdAddPointer ( =20 if (AddPointer->PointerFile[QEMU_LOADER_FNAME_SIZE - 1] !=3D '\0' || AddPointer->PointeeFile[QEMU_LOADER_FNAME_SIZE - 1] !=3D '\0') { - DEBUG ((EFI_D_ERROR, "%a: malformed file name\n", __FUNCTION__)); + DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__)); return EFI_PROTOCOL_ERROR; } =20 TrackerEntry =3D OrderedCollectionFind (Tracker, AddPointer->PointerFile= ); TrackerEntry2 =3D OrderedCollectionFind (Tracker, AddPointer->PointeeFil= e); if (TrackerEntry =3D=3D NULL || TrackerEntry2 =3D=3D NULL) { - DEBUG ((EFI_D_ERROR, "%a: invalid blob reference(s) \"%a\" / \"%a\"\n", + DEBUG ((DEBUG_ERROR, "%a: invalid blob reference(s) \"%a\" / \"%a\"\n", __FUNCTION__, AddPointer->PointerFile, AddPointer->PointeeFile)); return EFI_PROTOCOL_ERROR; } @@ -450,7 +450,7 @@ ProcessCmdAddPointer ( AddPointer->PointerSize !=3D 4 && AddPointer->PointerSize !=3D 8) || Blob->Size < AddPointer->PointerSize || Blob->Size - AddPointer->PointerSize < AddPointer->PointerOffset) { - DEBUG ((EFI_D_ERROR, "%a: invalid pointer location or size in \"%a\"\n= ", + DEBUG ((DEBUG_ERROR, "%a: invalid pointer location or size in \"%a\"\n= ", __FUNCTION__, AddPointer->PointerFile)); return EFI_PROTOCOL_ERROR; } @@ -459,7 +459,7 @@ ProcessCmdAddPointer ( PointerValue =3D 0; CopyMem (&PointerValue, PointerField, AddPointer->PointerSize); if (PointerValue >=3D Blob2->Size) { - DEBUG ((EFI_D_ERROR, "%a: invalid pointer value in \"%a\"\n", __FUNCTI= ON__, + DEBUG ((DEBUG_ERROR, "%a: invalid pointer value in \"%a\"\n", __FUNCTI= ON__, AddPointer->PointerFile)); return EFI_PROTOCOL_ERROR; } @@ -473,7 +473,7 @@ ProcessCmdAddPointer ( PointerValue +=3D (UINT64)(UINTN)Blob2->Base; if (AddPointer->PointerSize < 8 && RShiftU64 (PointerValue, AddPointer->PointerSize * 8) !=3D 0) { - DEBUG ((EFI_D_ERROR, "%a: relocated pointer value unrepresentable in " + DEBUG ((DEBUG_ERROR, "%a: relocated pointer value unrepresentable in " "\"%a\"\n", __FUNCTION__, AddPointer->PointerFile)); return EFI_PROTOCOL_ERROR; } @@ -515,13 +515,13 @@ ProcessCmdAddChecksum ( BLOB *Blob; =20 if (AddChecksum->File[QEMU_LOADER_FNAME_SIZE - 1] !=3D '\0') { - DEBUG ((EFI_D_ERROR, "%a: malformed file name\n", __FUNCTION__)); + DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__)); return EFI_PROTOCOL_ERROR; } =20 TrackerEntry =3D OrderedCollectionFind (Tracker, AddChecksum->File); if (TrackerEntry =3D=3D NULL) { - DEBUG ((EFI_D_ERROR, "%a: invalid blob reference \"%a\"\n", __FUNCTION= __, + DEBUG ((DEBUG_ERROR, "%a: invalid blob reference \"%a\"\n", __FUNCTION= __, AddChecksum->File)); return EFI_PROTOCOL_ERROR; } @@ -530,7 +530,7 @@ ProcessCmdAddChecksum ( if (Blob->Size <=3D AddChecksum->ResultOffset || Blob->Size < AddChecksum->Length || Blob->Size - AddChecksum->Length < AddChecksum->Start) { - DEBUG ((EFI_D_ERROR, "%a: invalid checksum range in \"%a\"\n", + DEBUG ((DEBUG_ERROR, "%a: invalid checksum range in \"%a\"\n", __FUNCTION__, AddChecksum->File)); return EFI_PROTOCOL_ERROR; } @@ -907,7 +907,7 @@ Process2ndPassCmdAddPointer ( } =20 if (*NumInstalled =3D=3D INSTALLED_TABLES_MAX) { - DEBUG ((EFI_D_ERROR, "%a: can't install more than %d tables\n", + DEBUG ((DEBUG_ERROR, "%a: can't install more than %d tables\n", __FUNCTION__, INSTALLED_TABLES_MAX)); Status =3D EFI_OUT_OF_RESOURCES; goto RollbackSeenPointer; @@ -917,7 +917,7 @@ Process2ndPassCmdAddPointer ( (VOID *)(UINTN)PointerValue, TableSize, &InstalledKey[*NumInstalled]); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: InstallAcpiTable(): %r\n", __FUNCTION__, + DEBUG ((DEBUG_ERROR, "%a: InstallAcpiTable(): %r\n", __FUNCTION__, Status)); goto RollbackSeenPointer; } @@ -980,7 +980,7 @@ InstallQemuFwCfgTables ( return Status; } if (FwCfgSize % sizeof *LoaderEntry !=3D 0) { - DEBUG ((EFI_D_ERROR, "%a: \"etc/table-loader\" has invalid size 0x%Lx\= n", + DEBUG ((DEBUG_ERROR, "%a: \"etc/table-loader\" has invalid size 0x%Lx\= n", __FUNCTION__, (UINT64)FwCfgSize)); return EFI_PROTOCOL_ERROR; } @@ -1128,7 +1128,7 @@ InstallQemuFwCfgTables ( AcpiProtocol->UninstallAcpiTable (AcpiProtocol, InstalledKey[Install= ed]); } } else { - DEBUG ((EFI_D_INFO, "%a: installed %d tables\n", __FUNCTION__, Install= ed)); + DEBUG ((DEBUG_INFO, "%a: installed %d tables\n", __FUNCTION__, Install= ed)); } =20 for (SeenPointerEntry =3D OrderedCollectionMin (SeenPointers); diff --git a/OvmfPkg/Csm/BiosThunk/VideoDxe/BiosVideo.c b/OvmfPkg/Csm/BiosT= hunk/VideoDxe/BiosVideo.c index 0a189bc59205..5a52298983e5 100644 --- a/OvmfPkg/Csm/BiosThunk/VideoDxe/BiosVideo.c +++ b/OvmfPkg/Csm/BiosThunk/VideoDxe/BiosVideo.c @@ -711,7 +711,7 @@ BiosVideoChildHandleInstall ( // if (FeaturePcdGet (PcdBiosVideoCheckVbeEnable)) { Status =3D BiosVideoCheckForVbe (BiosVideoPrivate); - DEBUG ((EFI_D_INFO, "BiosVideoCheckForVbe - %r\n", Status)); + DEBUG ((DEBUG_INFO, "BiosVideoCheckForVbe - %r\n", Status)); } else { Status =3D EFI_UNSUPPORTED; } @@ -720,11 +720,11 @@ BiosVideoChildHandleInstall ( // The VESA BIOS Extensions are not compatible with Graphics Output, s= o check for support // for the standard 640x480 16 color VGA mode // - DEBUG ((EFI_D_INFO, "VgaCompatible - %x\n", BiosVideoPrivate->VgaCompa= tible)); + DEBUG ((DEBUG_INFO, "VgaCompatible - %x\n", BiosVideoPrivate->VgaCompa= tible)); if (BiosVideoPrivate->VgaCompatible) { if (FeaturePcdGet (PcdBiosVideoCheckVgaEnable)) { Status =3D BiosVideoCheckForVga (BiosVideoPrivate); - DEBUG ((EFI_D_INFO, "BiosVideoCheckForVga - %r\n", Status)); + DEBUG ((DEBUG_INFO, "BiosVideoCheckForVga - %r\n", Status)); } else { Status =3D EFI_UNSUPPORTED; } @@ -1122,7 +1122,7 @@ ParseEdidData ( ((EdidDataBlock->EstablishedTimings[2] & 0x80) << 9) ; for (Index =3D 0; Index < VESA_BIOS_EXTENSIONS_EDID_ESTABLISHED_TIMING= _MAX_NUMBER; Index ++) { if ((TimingBits & 0x1) !=3D 0) { - DEBUG ((EFI_D_INFO, "Established Timing: %d x %d\n", + DEBUG ((DEBUG_INFO, "Established Timing: %d x %d\n", mEstablishedEdidTiming[Index].HorizontalResolution, mEstablishedEd= idTiming[Index].VerticalResolution)); ValidEdidTiming->Key[ValidNumber] =3D CalculateEdidKey (&mEstablis= hedEdidTiming[Index]); ValidNumber ++; @@ -1164,7 +1164,7 @@ ParseEdidData ( break; } RefreshRate =3D (UINT8) ((BufferIndex[1] & 0x1f) + 60); - DEBUG ((EFI_D_INFO, "Standard Timing: %d x %d\n", HorizontalResoluti= on, VerticalResolution)); + DEBUG ((DEBUG_INFO, "Standard Timing: %d x %d\n", HorizontalResoluti= on, VerticalResolution)); TempTiming.HorizontalResolution =3D HorizontalResolution; TempTiming.VerticalResolution =3D VerticalResolution; TempTiming.RefreshRate =3D RefreshRate; @@ -1191,7 +1191,7 @@ ParseEdidData ( // TempTiming.HorizontalResolution =3D ((UINT16)(BufferIndex[4] & 0xF0) <= < 4) | (BufferIndex[2]); TempTiming.VerticalResolution =3D ((UINT16)(BufferIndex[7] & 0xF0) << = 4) | (BufferIndex[5]); - DEBUG ((EFI_D_INFO, "Detailed Timing %d: %d x %d\n", + DEBUG ((DEBUG_INFO, "Detailed Timing %d: %d x %d\n", Index, TempTiming.HorizontalResolution, TempTiming.VerticalRes= olution)); ValidEdidTiming->Key[ValidNumber] =3D CalculateEdidKey (&TempTiming); ValidNumber ++; @@ -1572,7 +1572,7 @@ BiosVideoCheckForVbe ( continue; } =20 - DEBUG ((EFI_D_INFO, "Video Controller Mode 0x%x: %d x %d\n", + DEBUG ((DEBUG_INFO, "Video Controller Mode 0x%x: %d x %d\n", VbeModeNumber, BiosVideoPrivate->VbeModeInformationBlock->XRes= olution, BiosVideoPrivate->VbeModeInformationBlock->YResolution)); =20 if (EdidFound && (ValidEdidTiming.ValidNumber > 0)) { @@ -1737,7 +1737,7 @@ BiosVideoCheckForVbe ( DEBUG_CODE ( BIOS_VIDEO_MODE_DATA *ModeData; ModeData =3D &BiosVideoPrivate->ModeData[HighestResolutionMode]; - DEBUG ((EFI_D_INFO, "BiosVideo set highest resolution %d x %d\n", + DEBUG ((DEBUG_INFO, "BiosVideo set highest resolution %d x %d\n", ModeData->HorizontalResolution, ModeData->VerticalResolution= )); ); PreferMode =3D HighestResolutionMode; diff --git a/OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.c b/OvmfPkg/Csm/CsmS= upportLib/LegacyInterrupt.c index 2928e2632930..97ca21945fe7 100644 --- a/OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.c +++ b/OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.c @@ -192,7 +192,7 @@ LegacyInterruptInstall ( mLegacyInterruptDevice =3D LEGACY_INT_DEV_Q35; break; default: - DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", + DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, HostBridgeDevId)); ASSERT (FALSE); return EFI_UNSUPPORTED; diff --git a/OvmfPkg/Csm/CsmSupportLib/LegacyPlatform.c b/OvmfPkg/Csm/CsmSu= pportLib/LegacyPlatform.c index 9c60c4a4cfc4..96f9934b2086 100644 --- a/OvmfPkg/Csm/CsmSupportLib/LegacyPlatform.c +++ b/OvmfPkg/Csm/CsmSupportLib/LegacyPlatform.c @@ -309,7 +309,7 @@ GetSelectedVgaDeviceInfo ( if (!IS_PCI_VGA (&Pci)) { continue; } - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "PCI VGA: 0x%04x:0x%04x\n", Pci.Hdr.VendorId, Pci.Hdr.DeviceId diff --git a/OvmfPkg/Csm/CsmSupportLib/LegacyRegion.c b/OvmfPkg/Csm/CsmSupp= ortLib/LegacyRegion.c index 73276dc228b5..fe9ae27c9d91 100644 --- a/OvmfPkg/Csm/CsmSupportLib/LegacyRegion.c +++ b/OvmfPkg/Csm/CsmSupportLib/LegacyRegion.c @@ -477,7 +477,7 @@ LegacyRegionInit ( mRegisterValues =3D mRegisterValuesQ35; break; default: - DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", + DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, HostBridgeDevId)); ASSERT (FALSE); return RETURN_UNSUPPORTED; diff --git a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c b/OvmfPkg/Csm/LegacyBio= sDxe/LegacyBios.c index dd3608a64ece..3ce19496b07d 100644 --- a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c +++ b/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c @@ -364,7 +364,7 @@ ShadowAndStartLegacy16 ( } =20 if (Table =3D=3D NULL) { - DEBUG ((EFI_D_ERROR, "No Legacy16 table found\n")); + DEBUG ((DEBUG_ERROR, "No Legacy16 table found\n")); return EFI_NOT_FOUND; } =20 @@ -372,7 +372,7 @@ ShadowAndStartLegacy16 ( // // Legacy16 table header checksum error. // - DEBUG ((EFI_D_ERROR, "Legacy16 table found with bad talbe header check= sum\n")); + DEBUG ((DEBUG_ERROR, "Legacy16 table found with bad talbe header check= sum\n")); } =20 // @@ -483,7 +483,7 @@ ShadowAndStartLegacy16 ( Table->E820Pointer =3D (UINT32) (Regs.X.DS * 16 + Regs.X.BX); Table->E820Length =3D (UINT32) E820Size; if (Regs.X.AX !=3D 0) { - DEBUG ((EFI_D_ERROR, "Legacy16 E820 length insufficient\n")); + DEBUG ((DEBUG_ERROR, "Legacy16 E820 length insufficient\n")); } else { TempData =3D Table->E820Pointer; CopyMem ((VOID *) TempData, Private->E820Table, E820Size); @@ -543,7 +543,7 @@ ShadowAndStartLegacy16 ( =20 TpmPointer =3D (UINT32) (Regs.X.DS * 16 + Regs.X.BX); if (Regs.X.AX !=3D 0) { - DEBUG ((EFI_D_ERROR, "TPM cannot be loaded\n")); + DEBUG ((DEBUG_ERROR, "TPM cannot be loaded\n")); } else { CopyMem ((VOID *) (UINTN)TpmPointer, TpmBinaryImage, TpmBinaryImageS= ize); Table->TpmSegment =3D Regs.X.DS; @@ -738,7 +738,7 @@ InstallSmbiosEventCallback ( mReserveSmbiosEntryPoint =3D 0; return; } - DEBUG ((EFI_D_INFO, "Allocate memory for Smbios Entry Point Structure\= n")); + DEBUG ((DEBUG_INFO, "Allocate memory for Smbios Entry Point Structure\= n")); } =20 if ((mStructureTableAddress !=3D 0) && @@ -749,7 +749,7 @@ InstallSmbiosEventCallback ( gBS->FreePages (mStructureTableAddress, mStructureTablePages); mStructureTableAddress =3D 0; mStructureTablePages =3D 0; - DEBUG ((EFI_D_INFO, "Original size is not enough. Re-allocate the memo= ry.\n")); + DEBUG ((DEBUG_INFO, "Original size is not enough. Re-allocate the memo= ry.\n")); } =20 if (mStructureTableAddress =3D=3D 0) { @@ -775,7 +775,7 @@ InstallSmbiosEventCallback ( mStructureTablePages =3D 0; return; } - DEBUG ((EFI_D_INFO, "Allocate memory for Smbios Structure Table\n")); + DEBUG ((DEBUG_INFO, "Allocate memory for Smbios Structure Table\n")); } } =20 @@ -1051,7 +1051,7 @@ LegacyBiosInstall ( MemoryPtr =3D (VOID *) ((UINTN) StartAddress); ZeroMem (MemoryPtr, 0x1000); } else { - DEBUG ((EFI_D_ERROR, "WARNING: Allocate legacy memory fail for SCSI = card - %x\n", MemStart)); + DEBUG ((DEBUG_ERROR, "WARNING: Allocate legacy memory fail for SCSI = card - %x\n", MemStart)); } } =20 @@ -1206,7 +1206,7 @@ LegacyBiosInstall ( ); Private->Csm16PciInterfaceVersion =3D GetPciInterfaceVersion (Private); =20 - DEBUG ((EFI_D_INFO, "CSM16 PCI BIOS Interface Version: %02x.%02x\n", + DEBUG ((DEBUG_INFO, "CSM16 PCI BIOS Interface Version: %02x.%02x\n", (UINT8) (Private->Csm16PciInterfaceVersion >> 8), (UINT8) Private->Csm16PciInterfaceVersion )); diff --git a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBootSupport.c b/OvmfPkg/Csm/Le= gacyBiosDxe/LegacyBootSupport.c index 20784504d501..9a09d7230777 100644 --- a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBootSupport.c +++ b/OvmfPkg/Csm/LegacyBiosDxe/LegacyBootSupport.c @@ -46,9 +46,9 @@ PrintBbsTable ( UINT16 SubIndex; CHAR8 *String; =20 - DEBUG ((EFI_D_INFO, "\n")); - DEBUG ((EFI_D_INFO, " NO Prio bb/dd/ff cl/sc Type Stat segm:offs mfgs:m= fgo dess:deso\n")); - DEBUG ((EFI_D_INFO, "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n")); + DEBUG ((DEBUG_INFO, "\n")); + DEBUG ((DEBUG_INFO, " NO Prio bb/dd/ff cl/sc Type Stat segm:offs mfgs:m= fgo dess:deso\n")); + DEBUG ((DEBUG_INFO, "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n")); for (Index =3D 0; Index < MAX_BBS_ENTRIES; Index++) { // // Filter @@ -58,7 +58,7 @@ PrintBbsTable ( } =20 DEBUG (( - EFI_D_INFO, + DEBUG_INFO, " %02x: %04x %02x/%02x/%02x %02x/%02x %04x %04x", (UINTN) Index, (UINTN) BbsTable[Index].BootPriority, @@ -71,7 +71,7 @@ PrintBbsTable ( (UINTN) * (UINT16 *) &BbsTable[Index].StatusFlags )); DEBUG (( - EFI_D_INFO, + DEBUG_INFO, " %04x:%04x %04x:%04x %04x:%04x", (UINTN) BbsTable[Index].BootHandlerSegment, (UINTN) BbsTable[Index].BootHandlerOffset, @@ -86,16 +86,16 @@ PrintBbsTable ( // String =3D (CHAR8 *)(((UINTN)BbsTable[Index].DescStringSegment << 4) += BbsTable[Index].DescStringOffset); if (String !=3D NULL) { - DEBUG ((EFI_D_INFO," (")); + DEBUG ((DEBUG_INFO," (")); for (SubIndex =3D 0; String[SubIndex] !=3D 0; SubIndex++) { - DEBUG ((EFI_D_INFO, "%c", String[SubIndex])); + DEBUG ((DEBUG_INFO, "%c", String[SubIndex])); } - DEBUG ((EFI_D_INFO,")")); + DEBUG ((DEBUG_INFO,")")); } - DEBUG ((EFI_D_INFO,"\n")); + DEBUG ((DEBUG_INFO,"\n")); } =20 - DEBUG ((EFI_D_INFO, "\n")); + DEBUG ((DEBUG_INFO, "\n")); =20 return ; } @@ -114,20 +114,20 @@ PrintHddInfo ( { UINTN Index; =20 - DEBUG ((EFI_D_INFO, "\n")); + DEBUG ((DEBUG_INFO, "\n")); for (Index =3D 0; Index < MAX_IDE_CONTROLLER; Index++) { - DEBUG ((EFI_D_INFO, "Index - %04x\n", Index)); - DEBUG ((EFI_D_INFO, " Status - %04x\n", (UINTN)HddInfo[Index].Stat= us)); - DEBUG ((EFI_D_INFO, " B/D/F - %02x/%02x/%02x\n", (UINTN)HddInfo[I= ndex].Bus, (UINTN)HddInfo[Index].Device, (UINTN)HddInfo[Index].Function)); - DEBUG ((EFI_D_INFO, " Command - %04x\n", HddInfo[Index].CommandBase= Address)); - DEBUG ((EFI_D_INFO, " Control - %04x\n", HddInfo[Index].ControlBase= Address)); - DEBUG ((EFI_D_INFO, " BusMaster - %04x\n", HddInfo[Index].BusMasterAd= dress)); - DEBUG ((EFI_D_INFO, " HddIrq - %02x\n", HddInfo[Index].HddIrq)); - DEBUG ((EFI_D_INFO, " IdentifyDrive[0].Raw[0] - %x\n", HddInfo[Index]= .IdentifyDrive[0].Raw[0])); - DEBUG ((EFI_D_INFO, " IdentifyDrive[1].Raw[0] - %x\n", HddInfo[Index]= .IdentifyDrive[1].Raw[0])); + DEBUG ((DEBUG_INFO, "Index - %04x\n", Index)); + DEBUG ((DEBUG_INFO, " Status - %04x\n", (UINTN)HddInfo[Index].Stat= us)); + DEBUG ((DEBUG_INFO, " B/D/F - %02x/%02x/%02x\n", (UINTN)HddInfo[I= ndex].Bus, (UINTN)HddInfo[Index].Device, (UINTN)HddInfo[Index].Function)); + DEBUG ((DEBUG_INFO, " Command - %04x\n", HddInfo[Index].CommandBase= Address)); + DEBUG ((DEBUG_INFO, " Control - %04x\n", HddInfo[Index].ControlBase= Address)); + DEBUG ((DEBUG_INFO, " BusMaster - %04x\n", HddInfo[Index].BusMasterAd= dress)); + DEBUG ((DEBUG_INFO, " HddIrq - %02x\n", HddInfo[Index].HddIrq)); + DEBUG ((DEBUG_INFO, " IdentifyDrive[0].Raw[0] - %x\n", HddInfo[Index]= .IdentifyDrive[0].Raw[0])); + DEBUG ((DEBUG_INFO, " IdentifyDrive[1].Raw[0] - %x\n", HddInfo[Index]= .IdentifyDrive[1].Raw[0])); } =20 - DEBUG ((EFI_D_INFO, "\n")); + DEBUG ((DEBUG_INFO, "\n")); =20 return ; } @@ -163,9 +163,9 @@ PrintPciInterruptRegister ( Device =3D 0; Function =3D 0; =20 - DEBUG ((EFI_D_INFO, "\n")); - DEBUG ((EFI_D_INFO, " bb/dd/ff interrupt line interrupt pin\n")); - DEBUG ((EFI_D_INFO, "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n")); + DEBUG ((DEBUG_INFO, "\n")); + DEBUG ((DEBUG_INFO, " bb/dd/ff interrupt line interrupt pin\n")); + DEBUG ((DEBUG_INFO, "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n")); for (Index =3D 0; Index < HandleNum; Index++) { Status =3D gBS->HandleProtocol (Handles[Index], &gEfiPciIoProtocolGuid= , (VOID **) &PciIo); if (!EFI_ERROR (Status)) { @@ -187,11 +187,11 @@ PrintPciInterruptRegister ( ); } if (!EFI_ERROR (Status)) { - DEBUG ((EFI_D_INFO, " %02x/%02x/%02x 0x%02x 0x%02x\n", + DEBUG ((DEBUG_INFO, " %02x/%02x/%02x 0x%02x 0x%02x\n", Bus, Device, Function, Interrupt[0], Interrupt[1])); } } - DEBUG ((EFI_D_INFO, "\n")); + DEBUG ((DEBUG_INFO, "\n")); =20 if (Handles !=3D NULL) { FreePool (Handles); @@ -667,8 +667,8 @@ LegacyGetDataOrTable ( 0, 0 ); - DEBUG ((EFI_D_INFO, "LegacyGetDataOrTable - ID: %x, %r\n", (UINTN)= Id, Status)); - DEBUG ((EFI_D_INFO, " Table - %x, Size - %x, Location - %x, Align= ment - %x\n", (UINTN)Table, (UINTN)TableSize, (UINTN)Location, (UINTN)Align= ment)); + DEBUG ((DEBUG_INFO, "LegacyGetDataOrTable - ID: %x, %r\n", (UINTN)= Id, Status)); + DEBUG ((DEBUG_INFO, " Table - %x, Size - %x, Location - %x, Align= ment - %x\n", (UINTN)Table, (UINTN)TableSize, (UINTN)Location, (UINTN)Align= ment)); break; } =20 @@ -697,7 +697,7 @@ LegacyGetDataOrTable ( ); =20 if (Regs.X.AX !=3D 0) { - DEBUG ((EFI_D_ERROR, "Table ID %x length insufficient\n", Id)); + DEBUG ((DEBUG_ERROR, "Table ID %x length insufficient\n", Id)); return EFI_OUT_OF_RESOURCES; } else { break; @@ -721,7 +721,7 @@ LegacyGetDataOrTable ( { Legacy16Table->MpTablePtr =3D (UINT32) (Regs.X.DS * 16 + Regs.X.= BX); Legacy16Table->MpTableLength =3D (UINT32)TableSize; - DEBUG ((EFI_D_INFO, "MP table in legacy region - %x\n", (UINTN)Legac= y16Table->MpTablePtr)); + DEBUG ((DEBUG_INFO, "MP table in legacy region - %x\n", (UINTN)Legac= y16Table->MpTablePtr)); break; } =20 @@ -730,7 +730,7 @@ LegacyGetDataOrTable ( =20 Legacy16Table->OemIntSegment =3D Regs.X.DS; Legacy16Table->OemIntOffset =3D Regs.X.BX; - DEBUG ((EFI_D_INFO, "OemInt table in legacy region - %04x:%04x\n", (= UINTN)Legacy16Table->OemIntSegment, (UINTN)Legacy16Table->OemIntOffset)); + DEBUG ((DEBUG_INFO, "OemInt table in legacy region - %04x:%04x\n", (= UINTN)Legacy16Table->OemIntSegment, (UINTN)Legacy16Table->OemIntOffset)); break; } =20 @@ -738,7 +738,7 @@ LegacyGetDataOrTable ( { Legacy16Table->Oem32Segment =3D Regs.X.DS; Legacy16Table->Oem32Offset =3D Regs.X.BX; - DEBUG ((EFI_D_INFO, "Oem32 table in legacy region - %04x:%04x\n", (U= INTN)Legacy16Table->Oem32Segment, (UINTN)Legacy16Table->Oem32Offset)); + DEBUG ((DEBUG_INFO, "Oem32 table in legacy region - %04x:%04x\n", (U= INTN)Legacy16Table->Oem32Segment, (UINTN)Legacy16Table->Oem32Offset)); break; } =20 @@ -747,7 +747,7 @@ LegacyGetDataOrTable ( // // Legacy16Table->Oem16Segment =3D Regs.X.DS; // Legacy16Table->Oem16Offset =3D Regs.X.BX; - DEBUG ((EFI_D_INFO, "Oem16 table in legacy region - %04x:%04x\n", (U= INTN)Legacy16Table->Oem16Segment, (UINTN)Legacy16Table->Oem16Offset)); + DEBUG ((DEBUG_INFO, "Oem16 table in legacy region - %04x:%04x\n", (U= INTN)Legacy16Table->Oem16Segment, (UINTN)Legacy16Table->Oem16Offset)); break; } =20 @@ -880,7 +880,7 @@ GenericLegacyBoot ( =20 Private =3D LEGACY_BIOS_INSTANCE_FROM_THIS (This); DEBUG_CODE ( - DEBUG ((EFI_D_ERROR, "Start of legacy boot\n")); + DEBUG ((DEBUG_ERROR, "Start of legacy boot\n")); ); =20 Legacy16Table =3D Private->Legacy16Table; @@ -943,7 +943,7 @@ GenericLegacyBoot ( Private->Legacy16Table->E820Pointer =3D (UINT32) (Regs.X.DS * 16 + Reg= s.X.BX); Private->Legacy16Table->E820Length =3D (UINT32) CopySize; if (Regs.X.AX !=3D 0) { - DEBUG ((EFI_D_ERROR, "Legacy16 E820 length insufficient\n")); + DEBUG ((DEBUG_ERROR, "Legacy16 E820 length insufficient\n")); return EFI_OUT_OF_RESOURCES; } else { CopyMem ( @@ -965,7 +965,7 @@ GenericLegacyBoot ( // We do not ASSERT if SmbiosTable not found. It is possible that a plat= form does not produce SmbiosTable. // if (mReserveSmbiosEntryPoint =3D=3D 0) { - DEBUG ((EFI_D_INFO, "Smbios table is not found!\n")); + DEBUG ((DEBUG_INFO, "Smbios table is not found!\n")); } CreateSmbiosTableInReservedMemory (); EfiToLegacy16BootTable->SmbiosTable =3D (UINT32)(UINTN)mReserveSmbiosEnt= ryPoint; @@ -985,7 +985,7 @@ GenericLegacyBoot ( // We do not ASSERT if AcpiTable not found. It is possible that a platfo= rm does not produce AcpiTable. // if (AcpiTable =3D=3D NULL) { - DEBUG ((EFI_D_INFO, "ACPI table is not found!\n")); + DEBUG ((DEBUG_INFO, "ACPI table is not found!\n")); } EfiToLegacy16BootTable->AcpiTable =3D (UINT32)(UINTN)AcpiTable; =20 @@ -1245,7 +1245,7 @@ GenericLegacyBoot ( // Here we could reduce UmaAddress down as far as Private->OptionRom, = taking into // account the granularity of the access control. // - DEBUG((EFI_D_INFO, "Unlocking UMB RAM region 0x%x-0x%x\n", Private->Le= gacy16Table->UmaAddress, + DEBUG((DEBUG_INFO, "Unlocking UMB RAM region 0x%x-0x%x\n", Private->Le= gacy16Table->UmaAddress, Private->Legacy16Table->UmaAddress + Private->Lega= cy16Table->UmaSize)); =20 Private->LegacyRegion->UnLock ( @@ -1285,7 +1285,7 @@ GenericLegacyBoot ( (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_LEGACY_BOOT_EVENT) ); =20 - DEBUG ((EFI_D_INFO, "Legacy INT19 Boot...\n")); + DEBUG ((DEBUG_INFO, "Legacy INT19 Boot...\n")); =20 // // Disable DXE Timer while executing in real mode @@ -1944,7 +1944,7 @@ LegacyBiosBuildE820 ( // Print DEBUG information // for (TempIndex =3D 0; TempIndex < Index; TempIndex++) { - DEBUG((EFI_D_INFO, "E820[%2d]: 0x%016lx - 0x%016lx, Type =3D %d\n", + DEBUG((DEBUG_INFO, "E820[%2d]: 0x%016lx - 0x%016lx, Type =3D %d\n", TempIndex, E820Table[TempIndex].BaseAddr, (E820Table[TempIndex].BaseAddr + E820Table[TempIndex].Length), diff --git a/OvmfPkg/Csm/LegacyBiosDxe/LegacyPci.c b/OvmfPkg/Csm/LegacyBios= Dxe/LegacyPci.c index 2656dafde943..746b366448e6 100644 --- a/OvmfPkg/Csm/LegacyBiosDxe/LegacyPci.c +++ b/OvmfPkg/Csm/LegacyBiosDxe/LegacyPci.c @@ -374,7 +374,7 @@ GetPciLegacyRom ( } } } else { - DEBUG ((EFI_D_ERROR, "GetPciLegacyRom - OpRom not match (%04x-%04x= )\n", (UINTN)VendorId, (UINTN)DeviceId)); + DEBUG ((DEBUG_ERROR, "GetPciLegacyRom - OpRom not match (%04x-%04x= )\n", (UINTN)VendorId, (UINTN)DeviceId)); } } =20 @@ -752,7 +752,7 @@ Rotate (B,C,D,A) by 1 giving C,D,A,B. Translated PIRQ i= s C. // In case we fail to find the Bridge just above us, this is some potent= ial error and we want to warn the user // if(BridgeIndex >=3D NumberOfBridges){ - DEBUG ((EFI_D_ERROR, "Cannot Find IRQ Routing for Bus %d, Device %d, F= unction %d\n", *PciBus, *PciDevice, *PciFunction)); + DEBUG ((DEBUG_ERROR, "Cannot Find IRQ Routing for Bus %d, Device %d, F= unction %d\n", *PciBus, *PciDevice, *PciFunction)); } =20 *PirqIndex =3D LocalPirqIndex; @@ -823,9 +823,9 @@ CopyPirqTable ( =20 Private->Legacy16Table->IrqRoutingTablePointer =3D (UINT32) (Regs.X.DS= * 16 + Regs.X.BX); if (Regs.X.AX !=3D 0) { - DEBUG ((EFI_D_ERROR, "PIRQ table length insufficient - %x\n", PirqTa= bleSize)); + DEBUG ((DEBUG_ERROR, "PIRQ table length insufficient - %x\n", PirqTa= bleSize)); } else { - DEBUG ((EFI_D_INFO, "PIRQ table in legacy region - %x\n", Private->L= egacy16Table->IrqRoutingTablePointer)); + DEBUG ((DEBUG_INFO, "PIRQ table in legacy region - %x\n", Private->L= egacy16Table->IrqRoutingTablePointer)); Private->Legacy16Table->IrqRoutingTableLength =3D (UINT32)PirqTableS= ize; CopyMem ( (VOID *) (UINTN)Private->Legacy16Table->IrqRoutingTablePointer, @@ -858,24 +858,24 @@ DumpPciHandle ( IN EFI_LEGACY_INSTALL_PCI_HANDLER *PciHandle ) { - DEBUG ((EFI_D_INFO, "PciBus - %02x\n", (UINTN)PciHandle->Pci= Bus)); - DEBUG ((EFI_D_INFO, "PciDeviceFun - %02x\n", (UINTN)PciHandle->Pci= DeviceFun)); - DEBUG ((EFI_D_INFO, "PciSegment - %02x\n", (UINTN)PciHandle->Pci= Segment)); - DEBUG ((EFI_D_INFO, "PciClass - %02x\n", (UINTN)PciHandle->Pci= Class)); - DEBUG ((EFI_D_INFO, "PciSubclass - %02x\n", (UINTN)PciHandle->Pci= Subclass)); - DEBUG ((EFI_D_INFO, "PciInterface - %02x\n", (UINTN)PciHandle->Pci= Interface)); + DEBUG ((DEBUG_INFO, "PciBus - %02x\n", (UINTN)PciHandle->Pci= Bus)); + DEBUG ((DEBUG_INFO, "PciDeviceFun - %02x\n", (UINTN)PciHandle->Pci= DeviceFun)); + DEBUG ((DEBUG_INFO, "PciSegment - %02x\n", (UINTN)PciHandle->Pci= Segment)); + DEBUG ((DEBUG_INFO, "PciClass - %02x\n", (UINTN)PciHandle->Pci= Class)); + DEBUG ((DEBUG_INFO, "PciSubclass - %02x\n", (UINTN)PciHandle->Pci= Subclass)); + DEBUG ((DEBUG_INFO, "PciInterface - %02x\n", (UINTN)PciHandle->Pci= Interface)); =20 - DEBUG ((EFI_D_INFO, "PrimaryIrq - %02x\n", (UINTN)PciHandle->Pri= maryIrq)); - DEBUG ((EFI_D_INFO, "PrimaryReserved - %02x\n", (UINTN)PciHandle->Pri= maryReserved)); - DEBUG ((EFI_D_INFO, "PrimaryControl - %04x\n", (UINTN)PciHandle->Pri= maryControl)); - DEBUG ((EFI_D_INFO, "PrimaryBase - %04x\n", (UINTN)PciHandle->Pri= maryBase)); - DEBUG ((EFI_D_INFO, "PrimaryBusMaster - %04x\n", (UINTN)PciHandle->Pri= maryBusMaster)); + DEBUG ((DEBUG_INFO, "PrimaryIrq - %02x\n", (UINTN)PciHandle->Pri= maryIrq)); + DEBUG ((DEBUG_INFO, "PrimaryReserved - %02x\n", (UINTN)PciHandle->Pri= maryReserved)); + DEBUG ((DEBUG_INFO, "PrimaryControl - %04x\n", (UINTN)PciHandle->Pri= maryControl)); + DEBUG ((DEBUG_INFO, "PrimaryBase - %04x\n", (UINTN)PciHandle->Pri= maryBase)); + DEBUG ((DEBUG_INFO, "PrimaryBusMaster - %04x\n", (UINTN)PciHandle->Pri= maryBusMaster)); =20 - DEBUG ((EFI_D_INFO, "SecondaryIrq - %02x\n", (UINTN)PciHandle->Sec= ondaryIrq)); - DEBUG ((EFI_D_INFO, "SecondaryReserved - %02x\n", (UINTN)PciHandle->Sec= ondaryReserved)); - DEBUG ((EFI_D_INFO, "SecondaryControl - %04x\n", (UINTN)PciHandle->Sec= ondaryControl)); - DEBUG ((EFI_D_INFO, "SecondaryBase - %04x\n", (UINTN)PciHandle->Sec= ondaryBase)); - DEBUG ((EFI_D_INFO, "SecondaryBusMaster - %04x\n", (UINTN)PciHandle->Sec= ondaryBusMaster)); + DEBUG ((DEBUG_INFO, "SecondaryIrq - %02x\n", (UINTN)PciHandle->Sec= ondaryIrq)); + DEBUG ((DEBUG_INFO, "SecondaryReserved - %02x\n", (UINTN)PciHandle->Sec= ondaryReserved)); + DEBUG ((DEBUG_INFO, "SecondaryControl - %04x\n", (UINTN)PciHandle->Sec= ondaryControl)); + DEBUG ((DEBUG_INFO, "SecondaryBase - %04x\n", (UINTN)PciHandle->Sec= ondaryBase)); + DEBUG ((DEBUG_INFO, "SecondaryBusMaster - %04x\n", (UINTN)PciHandle->Sec= ondaryBusMaster)); return; } =20 @@ -1254,7 +1254,7 @@ PciProgramAllInterruptLineRegisters ( // If it does return failure status, check your PIRQ routing table t= o see if some item is missing or incorrect // if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "Translate Pirq Failed - Status =3D %r\n ", S= tatus)); + DEBUG ((DEBUG_ERROR, "Translate Pirq Failed - Status =3D %r\n ", S= tatus)); continue; } =20 @@ -2110,7 +2110,7 @@ LegacyBiosInstallVgaRom ( // This should be video thunk driver which is managing video device // So it need not start again // - DEBUG ((EFI_D_INFO, "Video thunk driver already start! Return!\n")= ); + DEBUG ((DEBUG_INFO, "Video thunk driver already start! Return!\n")= ); Private->VgaInstalled =3D TRUE; return EFI_SUCCESS; } @@ -2321,7 +2321,7 @@ LegacyBiosInstallRom ( ); =20 if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RE= SOURCES (no more space for OpROM)\n", __LINE__)); + DEBUG ((DEBUG_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RE= SOURCES (no more space for OpROM)\n", __LINE__)); // // Report Status Code to indicate that there is no enough space for = OpROM // @@ -2337,7 +2337,7 @@ LegacyBiosInstallRom ( // RuntimeAddress =3D Private->OptionRom; if (RuntimeAddress + *RuntimeImageLength > MaxRomAddr) { - DEBUG ((EFI_D_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RE= SOURCES (no more space for OpROM)\n", __LINE__)); + DEBUG ((DEBUG_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RE= SOURCES (no more space for OpROM)\n", __LINE__)); gBS->FreePages (PhysicalAddress, EFI_SIZE_TO_PAGES (ImageSize)); // // Report Status Code to indicate that there is no enough space for = OpROM @@ -2355,7 +2355,7 @@ LegacyBiosInstallRom ( // InitAddress =3D PCI_START_ADDRESS (Private->OptionRom); if (InitAddress + ImageSize > MaxRomAddr) { - DEBUG ((EFI_D_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RE= SOURCES (no more space for OpROM)\n", __LINE__)); + DEBUG ((DEBUG_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RE= SOURCES (no more space for OpROM)\n", __LINE__)); // // Report Status Code to indicate that there is no enough space for = OpROM // @@ -2383,7 +2383,7 @@ LegacyBiosInstallRom ( &Granularity ); =20 - DEBUG ((EFI_D_INFO, " Shadowing OpROM init/runtime/isize =3D %x/%x/%x\n"= , InitAddress, RuntimeAddress, ImageSize)); + DEBUG ((DEBUG_INFO, " Shadowing OpROM init/runtime/isize =3D %x/%x/%x\n"= , InitAddress, RuntimeAddress, ImageSize)); =20 CopyMem ((VOID *) InitAddress, RomImage, ImageSize); =20 @@ -2501,7 +2501,7 @@ LegacyBiosInstallRom ( &Device, &Function ); - DEBUG ((EFI_D_INFO, "Shadowing OpROM on the PCI device %x/%x/%x\n", Bu= s, Device, Function)); + DEBUG ((DEBUG_INFO, "Shadowing OpROM on the PCI device %x/%x/%x\n", Bu= s, Device, Function)); } =20 mIgnoreBbsUpdateFlag =3D FALSE; @@ -2526,7 +2526,7 @@ LegacyBiosInstallRom ( // Otherwise, it may cause the system to hang in some cases // if (!EFI_ERROR (PciEnableStatus)) { - DEBUG ((EFI_D_INFO, " Legacy16DispatchOprom - %02x/%02x/%02x\n", Bus, = Device, Function)); + DEBUG ((DEBUG_INFO, " Legacy16DispatchOprom - %02x/%02x/%02x\n", Bus, = Device, Function)); Private->LegacyBios.FarCall86 ( &Private->LegacyBios, Private->Legacy16CallSegment, @@ -2594,7 +2594,7 @@ LegacyBiosInstallRom ( *RuntimeImageLength =3D ((EFI_LEGACY_EXPANSION_ROM_HEADER *) RuntimeAd= dress)->Size512 * 512; } =20 - DEBUG ((EFI_D_INFO, " fsize =3D %x\n", *RuntimeImageLength)); + DEBUG ((DEBUG_INFO, " fsize =3D %x\n", *RuntimeImageLength)); =20 // // If OpROM runs in 2.0 mode diff --git a/OvmfPkg/Csm/LegacyBiosDxe/LegacySio.c b/OvmfPkg/Csm/LegacyBios= Dxe/LegacySio.c index 17720a74f7d5..6b9bb5ed8b2a 100644 --- a/OvmfPkg/Csm/LegacyBiosDxe/LegacySio.c +++ b/OvmfPkg/Csm/LegacyBiosDxe/LegacySio.c @@ -117,7 +117,7 @@ LegacyBiosBuildSioDataFromSio ( } } =20 - DEBUG ((EFI_D_INFO, "LegacySio: Address/Dma/Irq =3D %x/%d/%d\n", Addre= ss, Dma, Irq)); + DEBUG ((DEBUG_INFO, "LegacySio: Address/Dma/Irq =3D %x/%d/%d\n", Addre= ss, Dma, Irq)); =20 DevicePath =3D DevicePathFromHandle (HandleBuffer[Index]); if (DevicePath =3D=3D NULL) { diff --git a/OvmfPkg/Csm/LegacyBiosDxe/Thunk.c b/OvmfPkg/Csm/LegacyBiosDxe/= Thunk.c index 6432030a23ac..d9828bb2f894 100644 --- a/OvmfPkg/Csm/LegacyBiosDxe/Thunk.c +++ b/OvmfPkg/Csm/LegacyBiosDxe/Thunk.c @@ -242,7 +242,7 @@ InternalLegacyBiosFarCall ( } } if (Count >=3D 2) { - DEBUG ((EFI_D_ERROR, "ERROR: More than one HW interrupt active with = CSM enabled\n")); + DEBUG ((DEBUG_ERROR, "ERROR: More than one HW interrupt active with = CSM enabled\n")); } ASSERT (Count < 2); ); diff --git a/OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUi.c b/OvmfPkg= /Csm/LegacyBootMaintUiLib/LegacyBootMaintUi.c index 35470abf914a..31e211a7b904 100644 --- a/OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUi.c +++ b/OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUi.c @@ -808,7 +808,7 @@ UpdateLegacyDeviceOrderPage ( break; =20 default: - DEBUG ((EFI_D_ERROR, "Invalid command ID for updating page!\n")); + DEBUG ((DEBUG_ERROR, "Invalid command ID for updating page!\n")); return; } =20 diff --git a/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c b/OvmfPkg/Csm/Lega= cyBootManagerLib/LegacyBm.c index 6ed45785be72..cd0e02060f20 100644 --- a/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c +++ b/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c @@ -440,7 +440,7 @@ LegacyBmDeleteAllInvalidBootOptions ( =20 BbsIndex =3D LegacyBmFuzzyMatch (&BootOption[Index], BbsTable, BbsCoun= t, BbsIndexUsed); if (BbsIndex =3D=3D BbsCount) { - DEBUG ((EFI_D_INFO, "[LegacyBds] Delete Boot Option Boot%04x: %s\n",= (UINTN) BootOption[Index].OptionNumber, BootOption[Index].Description)); + DEBUG ((DEBUG_INFO, "[LegacyBds] Delete Boot Option Boot%04x: %s\n",= (UINTN) BootOption[Index].OptionNumber, BootOption[Index].Description)); // // Delete entry from LegacyDevOrder // @@ -454,7 +454,7 @@ LegacyBmDeleteAllInvalidBootOptions ( EfiBootManagerDeleteLoadOptionVariable (BootOption[Index].OptionNumb= er, BootOption[Index].OptionType); } else { if (((LEGACY_BM_BOOT_OPTION_BBS_DATA *) BootOption[Index].OptionalDa= ta)->BbsIndex !=3D BbsIndex) { - DEBUG ((EFI_D_INFO, "[LegacyBds] Update Boot Option Boot%04x: %s B= bs0x%04x->Bbs0x%04x\n", (UINTN) BootOption[Index].OptionNumber, BootOption[= Index].Description, + DEBUG ((DEBUG_INFO, "[LegacyBds] Update Boot Option Boot%04x: %s B= bs0x%04x->Bbs0x%04x\n", (UINTN) BootOption[Index].OptionNumber, BootOption[= Index].Description, (UINTN) ((LEGACY_BM_BOOT_OPTION_BBS_DATA *) BootOption[Ind= ex].OptionalData)->BbsIndex, (UINTN) BbsIndex)); // // Update the BBS index in LegacyDevOrder @@ -1506,7 +1506,7 @@ LegacyBmRefreshAllBootOption ( if (LegacyBmFindBootOption (&BootOptions[Index], ExistingBootOptions, = ExistingBootOptionCount) =3D=3D -1) { Status =3D EfiBootManagerAddLoadOptionVariable (&BootOptions[Index],= (UINTN) -1); DEBUG (( - EFI_D_INFO, "[LegacyBds] New Boot Option: Boot%04x Bbs0x%04x %s %r= \n", + DEBUG_INFO, "[LegacyBds] New Boot Option: Boot%04x Bbs0x%04x %s %r= \n", (UINTN) BootOptions[Index].OptionNumber, (UINTN) ((LEGACY_BM_BOOT_OPTION_BBS_DATA *) BootOptions[Index].Opt= ionalData)->BbsIndex, BootOptions[Index].Description, diff --git a/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c b/OvmfPkg/EmuVariableFv= bRuntimeDxe/Fvb.c index b6c6abef1ef2..766ad1e59f47 100644 --- a/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c +++ b/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c @@ -579,7 +579,7 @@ ValidateFvHeader ( (FwVolHeader->FvLength !=3D EMU_FVB_SIZE) || (FwVolHeader->HeaderLength !=3D EMU_FV_HEADER_LENGTH) ) { - DEBUG ((EFI_D_INFO, "EMU Variable FVB: Basic FV headers were invalid\n= ")); + DEBUG ((DEBUG_INFO, "EMU Variable FVB: Basic FV headers were invalid\n= ")); return EFI_NOT_FOUND; } // @@ -588,7 +588,7 @@ ValidateFvHeader ( Checksum =3D CalculateSum16((VOID*) FwVolHeader, FwVolHeader->HeaderLeng= th); =20 if (Checksum !=3D 0) { - DEBUG ((EFI_D_INFO, "EMU Variable FVB: FV checksum was invalid\n")); + DEBUG ((DEBUG_INFO, "EMU Variable FVB: FV checksum was invalid\n")); return EFI_NOT_FOUND; } =20 @@ -719,7 +719,7 @@ FvbInitialize ( EFI_PHYSICAL_ADDRESS Address; RETURN_STATUS PcdStatus; =20 - DEBUG ((EFI_D_INFO, "EMU Variable FVB Started\n")); + DEBUG ((DEBUG_INFO, "EMU Variable FVB Started\n")); =20 // // Verify that the PCD's are set correctly. @@ -732,12 +732,12 @@ FvbInitialize ( ) > EMU_FVB_NUM_SPARE_BLOCKS * EMU_FVB_BLOCK_SIZE ) { - DEBUG ((EFI_D_ERROR, "EMU Variable invalid PCD sizes\n")); + DEBUG ((DEBUG_ERROR, "EMU Variable invalid PCD sizes\n")); return EFI_INVALID_PARAMETER; } =20 if (PcdGet64 (PcdFlashNvStorageVariableBase64) !=3D 0) { - DEBUG ((EFI_D_INFO, "Disabling EMU Variable FVB since " + DEBUG ((DEBUG_INFO, "Disabling EMU Variable FVB since " "flash variables appear to be supported.\n")); return EFI_ABORTED; } @@ -754,13 +754,13 @@ FvbInitialize ( if (PcdGet64 (PcdEmuVariableNvStoreReserved) !=3D 0) { Ptr =3D (VOID*)(UINTN) PcdGet64 (PcdEmuVariableNvStoreReserved); DEBUG (( - EFI_D_INFO, + DEBUG_INFO, "EMU Variable FVB: Using pre-reserved block at %p\n", Ptr )); Status =3D ValidateFvHeader (Ptr); if (!EFI_ERROR (Status)) { - DEBUG ((EFI_D_INFO, "EMU Variable FVB: Found valid pre-existing FV\n= ")); + DEBUG ((DEBUG_INFO, "EMU Variable FVB: Found valid pre-existing FV\n= ")); Initialize =3D FALSE; } } else { @@ -806,7 +806,7 @@ FvbInitialize ( // // Install the protocols // - DEBUG ((EFI_D_INFO, "Installing FVB for EMU Variable support\n")); + DEBUG ((DEBUG_INFO, "Installing FVB for EMU Variable support\n")); Handle =3D 0; Status =3D gBS->InstallMultipleProtocolInterfaces ( &Handle, diff --git a/OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceS= upport.c b/OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSup= port.c index 21b49a8753e8..53c768167de9 100644 --- a/OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.c +++ b/OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.c @@ -233,7 +233,7 @@ CheckDevice ( // *Configuration =3D AllocateCopyPool (sizeof mConfiguration, &mConfigurat= ion); if (*Configuration =3D=3D NULL) { - DEBUG ((EFI_D_WARN, + DEBUG ((DEBUG_WARN, "%a: 64-bit MMIO BARs may be degraded for PCI 0x%04x:0x%04x (rev %d)= \n", __FUNCTION__, (UINT32)VendorId, (UINT32)DeviceId, (UINT8)RevisionId)= ); return EFI_OUT_OF_RESOURCES; diff --git a/OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.c b/OvmfPkg/Libr= ary/AcpiTimerLib/BaseAcpiTimerLib.c index aa2b5faf1c00..7c593e8be156 100644 --- a/OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.c +++ b/OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.c @@ -56,7 +56,7 @@ AcpiTimerLibConstructor ( AcpiEnBit =3D ICH9_ACPI_CNTL_ACPI_EN; break; default: - DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", + DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, HostBridgeDevId)); ASSERT (FALSE); return RETURN_UNSUPPORTED; diff --git a/OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.c b/OvmfPkg/L= ibrary/AcpiTimerLib/BaseRomAcpiTimerLib.c index dd022aceed2a..52f3ea2dbf16 100644 --- a/OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.c +++ b/OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.c @@ -54,7 +54,7 @@ AcpiTimerLibConstructor ( AcpiEnBit =3D ICH9_ACPI_CNTL_ACPI_EN; break; default: - DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", + DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, HostBridgeDevId)); ASSERT (FALSE); return RETURN_UNSUPPORTED; @@ -108,7 +108,7 @@ InternalAcpiGetTimerTick ( Pmba =3D POWER_MGMT_REGISTER_Q35 (ICH9_PMBASE); break; default: - DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", + DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, HostBridgeDevId)); ASSERT (FALSE); return 0; diff --git a/OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c b/OvmfPkg/Libra= ry/AcpiTimerLib/DxeAcpiTimerLib.c index ae976cbe9e96..09076c0adebf 100644 --- a/OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c +++ b/OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c @@ -51,7 +51,7 @@ AcpiTimerLibConstructor ( Pmba =3D POWER_MGMT_REGISTER_Q35 (ICH9_PMBASE); break; default: - DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", + DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, HostBridgeDevId)); ASSERT (FALSE); return RETURN_UNSUPPORTED; diff --git a/OvmfPkg/Library/LoadLinuxLib/Linux.c b/OvmfPkg/Library/LoadLin= uxLib/Linux.c index 318e36ff1125..c5022f6636ed 100644 --- a/OvmfPkg/Library/LoadLinuxLib/Linux.c +++ b/OvmfPkg/Library/LoadLinuxLib/Linux.c @@ -137,7 +137,7 @@ LoadLinuxInitializeKernelSetup ( // ZeroMem (KernelSetup, 0x1f1); ZeroMem (((UINT8 *)KernelSetup) + SetupEnd, 4096 - SetupEnd); - DEBUG ((EFI_D_INFO, "Cleared kernel setup 0-0x1f1, 0x%Lx-0x1000\n", + DEBUG ((DEBUG_INFO, "Cleared kernel setup 0-0x1f1, 0x%Lx-0x1000\n", (UINT64)SetupEnd)); =20 return EFI_SUCCESS; @@ -338,7 +338,7 @@ SetupLinuxMemmap ( =20 default: DEBUG (( - EFI_D_ERROR, + DEBUG_ERROR, "Invalid EFI memory descriptor type (0x%x)!\n", MemoryMap->Type )); @@ -643,7 +643,7 @@ LoadLinux ( Bp->hdr.code32_start =3D (UINT32)(UINTN) Kernel; if (Bp->hdr.version >=3D 0x20c && Bp->hdr.handover_offset && (Bp->hdr.xloadflags & (sizeof (UINTN) =3D=3D 4 ? BIT2 : BIT3))) { - DEBUG ((EFI_D_INFO, "Jumping to kernel EFI handover point at ofs %x\n"= , Bp->hdr.handover_offset)); + DEBUG ((DEBUG_INFO, "Jumping to kernel EFI handover point at ofs %x\n"= , Bp->hdr.handover_offset)); =20 DisableInterrupts (); JumpToUefiKernel ((VOID*) gImageHandle, (VOID*) gST, KernelSetup, Kern= el); @@ -654,7 +654,7 @@ LoadLinux ( // SetupLinuxBootParams (KernelSetup); =20 - DEBUG ((EFI_D_INFO, "Jumping to kernel\n")); + DEBUG ((DEBUG_INFO, "Jumping to kernel\n")); DisableInterrupts (); SetLinuxDescriptorTables (); JumpToKernel (Kernel, (VOID*) KernelSetup); diff --git a/OvmfPkg/Library/NvVarsFileLib/FsAccess.c b/OvmfPkg/Library/NvV= arsFileLib/FsAccess.c index 627a15abd274..2ba03522fbb6 100644 --- a/OvmfPkg/Library/NvVarsFileLib/FsAccess.c +++ b/OvmfPkg/Library/NvVarsFileLib/FsAccess.c @@ -228,7 +228,7 @@ ReadNvVarsFile ( =20 Status =3D GetNvVarsFile (FsHandle, TRUE, &File); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_INFO, "FsAccess.c: Could not open NV Variables file on t= his file system\n")); + DEBUG ((DEBUG_INFO, "FsAccess.c: Could not open NV Variables file on t= his file system\n")); return Status; } =20 @@ -245,7 +245,7 @@ ReadNvVarsFile ( } =20 DEBUG (( - EFI_D_INFO, + DEBUG_INFO, "FsAccess.c: Read %Lu bytes from NV Variables file\n", (UINT64)FileSize )); @@ -317,7 +317,7 @@ LoadNvVarsFromFs ( BOOLEAN VarData; UINTN Size; =20 - DEBUG ((EFI_D_INFO, "FsAccess.c: LoadNvVarsFromFs\n")); + DEBUG ((DEBUG_INFO, "FsAccess.c: LoadNvVarsFromFs\n")); =20 // // We write a variable to indicate we've already loaded the @@ -338,7 +338,7 @@ LoadNvVarsFromFs ( (VOID*) &VarData ); if (Status =3D=3D EFI_SUCCESS) { - DEBUG ((EFI_D_INFO, "NV Variables were already loaded\n")); + DEBUG ((DEBUG_INFO, "NV Variables were already loaded\n")); return EFI_ALREADY_STARTED; } =20 @@ -347,7 +347,7 @@ LoadNvVarsFromFs ( // Status =3D ReadNvVarsFile (FsHandle); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_INFO, "Error while restoring NV variable data\n")); + DEBUG ((DEBUG_INFO, "Error while restoring NV variable data\n")); return Status; } =20 @@ -359,7 +359,7 @@ LoadNvVarsFromFs ( SetNvVarsVariable(); =20 DEBUG (( - EFI_D_INFO, + DEBUG_INFO, "FsAccess.c: Read NV Variables file (size=3D%Lu)\n", (UINT64)Size )); @@ -469,7 +469,7 @@ SaveNvVarsToFs ( // Status =3D GetNvVarsFile (FsHandle, FALSE, &File); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_INFO, "FsAccess.c: Unable to open file to saved NV Varia= bles\n")); + DEBUG ((DEBUG_INFO, "FsAccess.c: Unable to open file to saved NV Varia= bles\n")); return Status; } =20 @@ -498,7 +498,7 @@ SaveNvVarsToFs ( // SetNvVarsVariable(); =20 - DEBUG ((EFI_D_INFO, "Saved NV Variables to NvVars file\n")); + DEBUG ((DEBUG_INFO, "Saved NV Variables to NvVars file\n")); } =20 return Status; diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c b/OvmfPkg/= Library/PciHostBridgeLib/PciHostBridgeLib.c index ec2385b75bbd..e850f7d183ee 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c +++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c @@ -152,13 +152,13 @@ InitRootBridge ( DevicePath =3D AllocateCopyPool (sizeof mRootBridgeDevicePathTemplate, &mRootBridgeDevicePathTemplate); if (DevicePath =3D=3D NULL) { - DEBUG ((EFI_D_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES)); + DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES)); return EFI_OUT_OF_RESOURCES; } DevicePath->AcpiDevicePath.UID =3D RootBusNumber; RootBus->DevicePath =3D (EFI_DEVICE_PATH_PROTOCOL *)DevicePath; =20 - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "%a: populated root bus %d, with room for %d subordinate bus(es)\n", __FUNCTION__, RootBusNumber, MaxSubBusNumber - RootBusNumber)); return EFI_SUCCESS; @@ -256,11 +256,11 @@ PciHostBridgeGetRootBridges ( QemuFwCfgReadBytes (FwCfgSize, &ExtraRootBridges); =20 if (ExtraRootBridges > PCI_MAX_BUS) { - DEBUG ((EFI_D_ERROR, "%a: invalid count of extra root buses (%Lu) " + DEBUG ((DEBUG_ERROR, "%a: invalid count of extra root buses (%Lu) " "reported by QEMU\n", __FUNCTION__, ExtraRootBridges)); return NULL; } - DEBUG ((EFI_D_INFO, "%a: %Lu extra root buses reported by QEMU\n", + DEBUG ((DEBUG_INFO, "%a: %Lu extra root buses reported by QEMU\n", __FUNCTION__, ExtraRootBridges)); } =20 @@ -269,7 +269,7 @@ PciHostBridgeGetRootBridges ( // Bridges =3D AllocatePool ((1 + (UINTN)ExtraRootBridges) * sizeof *Bridge= s); if (Bridges =3D=3D NULL) { - DEBUG ((EFI_D_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES)); + DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES)); return NULL; } Initialized =3D 0; @@ -409,22 +409,22 @@ PciHostBridgeResourceConflict ( { EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Descriptor; UINTN RootBridgeIndex; - DEBUG ((EFI_D_ERROR, "PciHostBridge: Resource conflict happens!\n")); + DEBUG ((DEBUG_ERROR, "PciHostBridge: Resource conflict happens!\n")); =20 RootBridgeIndex =3D 0; Descriptor =3D (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *) Configuration; while (Descriptor->Desc =3D=3D ACPI_ADDRESS_SPACE_DESCRIPTOR) { - DEBUG ((EFI_D_ERROR, "RootBridge[%d]:\n", RootBridgeIndex++)); + DEBUG ((DEBUG_ERROR, "RootBridge[%d]:\n", RootBridgeIndex++)); for (; Descriptor->Desc =3D=3D ACPI_ADDRESS_SPACE_DESCRIPTOR; Descript= or++) { ASSERT (Descriptor->ResType < ARRAY_SIZE (mPciHostBridgeLibAcpiAddressSpaceTypeStr) ); - DEBUG ((EFI_D_ERROR, " %s: Length/Alignment =3D 0x%lx / 0x%lx\n", + DEBUG ((DEBUG_ERROR, " %s: Length/Alignment =3D 0x%lx / 0x%lx\n", mPciHostBridgeLibAcpiAddressSpaceTypeStr[Descriptor->ResType= ], Descriptor->AddrLen, Descriptor->AddrRangeMax )); if (Descriptor->ResType =3D=3D ACPI_ADDRESS_SPACE_TYPE_MEM) { - DEBUG ((EFI_D_ERROR, " Granularity/SpecificFlag =3D %ld / %02x= %s\n", + DEBUG ((DEBUG_ERROR, " Granularity/SpecificFlag =3D %ld / %02x= %s\n", Descriptor->AddrSpaceGranularity, Descriptor->SpecificFlag, ((Descriptor->SpecificFlag & EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETC= HABLE diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg= /Library/PlatformBootManagerLib/BdsPlatform.c index 45d0ee9cc3a8..05cf28b33a03 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -252,7 +252,7 @@ RemoveStaleFvFileOptions ( DevicePathString =3D ConvertDevicePathToText(BootOptions[Index].File= Path, FALSE, FALSE); DEBUG (( - EFI_ERROR (Status) ? EFI_D_WARN : EFI_D_VERBOSE, + EFI_ERROR (Status) ? DEBUG_WARN : EFI_D_VERBOSE, "%a: removing stale Boot#%04x %s: %r\n", __FUNCTION__, (UINT32)BootOptions[Index].OptionNumber, @@ -356,7 +356,7 @@ PlatformBootManagerBeforeConsole ( UINT16 FrontPageTimeout; RETURN_STATUS PcdStatus; =20 - DEBUG ((EFI_D_INFO, "PlatformBootManagerBeforeConsole\n")); + DEBUG ((DEBUG_INFO, "PlatformBootManagerBeforeConsole\n")); InstallDevicePathCallback (); =20 VisitAllInstancesOfProtocol (&gEfiPciRootBridgeIoProtocolGuid, @@ -610,7 +610,7 @@ PrepareLpcBridgeDevicePath ( DevPathStr =3D ConvertDevicePathToText (DevicePath, FALSE, FALSE); if (DevPathStr !=3D NULL) { DEBUG(( - EFI_D_INFO, + DEBUG_INFO, "BdsPlatform.c+%d: COM%d DevPath: %s\n", __LINE__, gPnp16550ComPortDeviceNode.UID + 1, @@ -642,7 +642,7 @@ PrepareLpcBridgeDevicePath ( DevPathStr =3D ConvertDevicePathToText (DevicePath, FALSE, FALSE); if (DevPathStr !=3D NULL) { DEBUG(( - EFI_D_INFO, + DEBUG_INFO, "BdsPlatform.c+%d: COM%d DevPath: %s\n", __LINE__, gPnp16550ComPortDeviceNode.UID + 1, @@ -966,7 +966,7 @@ DetectAndPreparePlatformPciDevicePath ( // Add IsaKeyboard to ConIn, // add IsaSerial to ConOut, ConIn, ErrOut // - DEBUG ((EFI_D_INFO, "Found LPC Bridge device\n")); + DEBUG ((DEBUG_INFO, "Found LPC Bridge device\n")); PrepareLpcBridgeDevicePath (Handle); return EFI_SUCCESS; } @@ -977,7 +977,7 @@ DetectAndPreparePlatformPciDevicePath ( // // Add them to ConOut, ConIn, ErrOut. // - DEBUG ((EFI_D_INFO, "Found PCI 16550 SERIAL device\n")); + DEBUG ((DEBUG_INFO, "Found PCI 16550 SERIAL device\n")); PreparePciSerialDevicePath (Handle); return EFI_SUCCESS; } @@ -989,7 +989,7 @@ DetectAndPreparePlatformPciDevicePath ( // // Add them to ConOut. // - DEBUG ((EFI_D_INFO, "Found PCI display device\n")); + DEBUG ((DEBUG_INFO, "Found PCI display device\n")); PreparePciDisplayDevicePath (Handle); return EFI_SUCCESS; } @@ -1118,7 +1118,7 @@ SetPciIntLine ( } if (RootBusNumber =3D=3D 0 && RootSlot =3D=3D 0) { DEBUG(( - EFI_D_ERROR, + DEBUG_ERROR, "%a: PCI host bridge (00:00.0) should have no interrupts!\n", __FUNCTION__ )); @@ -1237,7 +1237,7 @@ PciAcpiInitialization ( // return; } - DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", + DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, mHostBridgeDevId)); ASSERT (FALSE); return; @@ -1287,7 +1287,7 @@ ConnectRecursivelyIfPciMassStorage ( DevPathStr =3D ConvertDevicePathToText (DevicePath, FALSE, FALSE); if (DevPathStr !=3D NULL) { DEBUG(( - EFI_D_INFO, + DEBUG_INFO, "Found %s device: %s\n", (IS_CLASS1 (PciHeader, PCI_CLASS_MASS_STORAGE) ? L"Mass Storage" : @@ -1324,7 +1324,7 @@ EmuVariablesUpdatedCallback ( IN VOID *Context ) { - DEBUG ((EFI_D_INFO, "EmuVariablesUpdatedCallback\n")); + DEBUG ((DEBUG_INFO, "EmuVariablesUpdatedCallback\n")); UpdateNvVarsOnFileSystem (); } =20 @@ -1393,7 +1393,7 @@ PlatformBdsConnectSequence ( UINTN Index; RETURN_STATUS Status; =20 - DEBUG ((EFI_D_INFO, "PlatformBdsConnectSequence\n")); + DEBUG ((DEBUG_INFO, "PlatformBdsConnectSequence\n")); =20 Index =3D 0; =20 @@ -1473,10 +1473,10 @@ PlatformBootManagerAfterConsole ( { EFI_BOOT_MODE BootMode; =20 - DEBUG ((EFI_D_INFO, "PlatformBootManagerAfterConsole\n")); + DEBUG ((DEBUG_INFO, "PlatformBootManagerAfterConsole\n")); =20 if (PcdGetBool (PcdOvmfFlashVariablesEnable)) { - DEBUG ((EFI_D_INFO, "PlatformBdsPolicyBehavior: not restoring NvVars " + DEBUG ((DEBUG_INFO, "PlatformBdsPolicyBehavior: not restoring NvVars " "from disk since flash variables appear to be supported.\n")); } else { // @@ -1629,7 +1629,7 @@ InstallDevicePathCallback ( VOID ) { - DEBUG ((EFI_D_INFO, "Registered NotifyDevPath Event\n")); + DEBUG ((DEBUG_INFO, "Registered NotifyDevPath Event\n")); mEfiDevPathEvent =3D EfiCreateProtocolNotifyEvent ( &gEfiDevicePathProtocolGuid, TPL_CALLBACK, diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxe.c b/OvmfPkg/Library/= QemuFwCfgLib/QemuFwCfgDxe.c index 983680f8b6dd..0182c9235cac 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxe.c +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxe.c @@ -66,14 +66,14 @@ QemuFwCfgInitialize ( =20 QemuFwCfgSelectItem (QemuFwCfgItemSignature); Signature =3D QemuFwCfgRead32 (); - DEBUG ((EFI_D_INFO, "FW CFG Signature: 0x%x\n", Signature)); + DEBUG ((DEBUG_INFO, "FW CFG Signature: 0x%x\n", Signature)); QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion); Revision =3D QemuFwCfgRead32 (); - DEBUG ((EFI_D_INFO, "FW CFG Revision: 0x%x\n", Revision)); + DEBUG ((DEBUG_INFO, "FW CFG Revision: 0x%x\n", Revision)); if ((Signature !=3D SIGNATURE_32 ('Q', 'E', 'M', 'U')) || (Revision < 1) ) { - DEBUG ((EFI_D_INFO, "QemuFwCfg interface not supported.\n")); + DEBUG ((DEBUG_INFO, "QemuFwCfg interface not supported.\n")); mQemuFwCfgSupported =3D FALSE; return RETURN_SUCCESS; } diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c b/OvmfPkg/Library/= QemuFwCfgLib/QemuFwCfgLib.c index 4d2c43cb8fd7..4ef78b7a8b65 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c @@ -35,7 +35,7 @@ QemuFwCfgSelectItem ( IN FIRMWARE_CONFIG_ITEM QemuFwCfgItem ) { - DEBUG ((EFI_D_INFO, "Select Item: 0x%x\n", (UINT16)(UINTN) QemuFwCfgItem= )); + DEBUG ((DEBUG_INFO, "Select Item: 0x%x\n", (UINT16)(UINTN) QemuFwCfgItem= )); IoWrite16 (FW_CFG_IO_SELECTOR, (UINT16)(UINTN) QemuFwCfgItem); } =20 diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c b/OvmfPkg/Library/= QemuFwCfgLib/QemuFwCfgPei.c index d07b1714c20b..ecabd88fab66 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c @@ -59,14 +59,14 @@ QemuFwCfgInitialize ( =20 QemuFwCfgSelectItem (QemuFwCfgItemSignature); Signature =3D QemuFwCfgRead32 (); - DEBUG ((EFI_D_INFO, "FW CFG Signature: 0x%x\n", Signature)); + DEBUG ((DEBUG_INFO, "FW CFG Signature: 0x%x\n", Signature)); QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion); Revision =3D QemuFwCfgRead32 (); - DEBUG ((EFI_D_INFO, "FW CFG Revision: 0x%x\n", Revision)); + DEBUG ((DEBUG_INFO, "FW CFG Revision: 0x%x\n", Revision)); if ((Signature !=3D SIGNATURE_32 ('Q', 'E', 'M', 'U')) || (Revision < 1) ) { - DEBUG ((EFI_D_INFO, "QemuFwCfg interface not supported.\n")); + DEBUG ((DEBUG_INFO, "QemuFwCfg interface not supported.\n")); mQemuFwCfgSupported =3D FALSE; return RETURN_SUCCESS; } diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSec.c b/OvmfPkg/Library/= QemuFwCfgLib/QemuFwCfgSec.c index d7a44e5897d5..94e8e92180cf 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSec.c +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSec.c @@ -38,18 +38,18 @@ QemuFwCfgIsAvailable ( =20 QemuFwCfgSelectItem (QemuFwCfgItemSignature); Signature =3D QemuFwCfgRead32 (); - DEBUG ((EFI_D_INFO, "FW CFG Signature: 0x%x\n", Signature)); + DEBUG ((DEBUG_INFO, "FW CFG Signature: 0x%x\n", Signature)); QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion); Revision =3D QemuFwCfgRead32 (); - DEBUG ((EFI_D_INFO, "FW CFG Revision: 0x%x\n", Revision)); + DEBUG ((DEBUG_INFO, "FW CFG Revision: 0x%x\n", Revision)); if ((Signature !=3D SIGNATURE_32 ('Q', 'E', 'M', 'U')) || (Revision < 1) ) { - DEBUG ((EFI_D_INFO, "QemuFwCfg interface not supported.\n")); + DEBUG ((DEBUG_INFO, "QemuFwCfg interface not supported.\n")); return FALSE; } =20 - DEBUG ((EFI_D_INFO, "QemuFwCfg interface is supported.\n")); + DEBUG ((DEBUG_INFO, "QemuFwCfg interface is supported.\n")); return TRUE; } =20 diff --git a/OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c = b/OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c index a6cebcb54f6b..777b93f1a029 100644 --- a/OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c +++ b/OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c @@ -211,7 +211,7 @@ IterateVariablesInBuffer ( // if (TotalSizeUsed !=3D MaxSize) { DEBUG (( - EFI_D_ERROR, + DEBUG_ERROR, "Deserialize variables error: TotalSizeUsed(%Lu) !=3D MaxSize(%Lu)\n= ", (UINT64)TotalSizeUsed, (UINT64)MaxSize diff --git a/OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.c b/Ov= mfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.c index 24ec7cd19b92..4d2c23cfb39f 100644 --- a/OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.c +++ b/OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.c @@ -80,7 +80,7 @@ DetectSmbiosVersion ( SmbiosVersion =3D (UINT16)(QemuAnchor.V3.MajorVersion << 8 | QemuAnchor.V3.MinorVersion); =20 - DEBUG ((EFI_D_INFO, "%a: SMBIOS 3.x DocRev from QEMU: 0x%02x\n", + DEBUG ((DEBUG_INFO, "%a: SMBIOS 3.x DocRev from QEMU: 0x%02x\n", __FUNCTION__, QemuAnchor.V3.DocRev)); PcdStatus =3D PcdSet8S (PcdSmbiosDocRev, QemuAnchor.V3.DocRev); ASSERT_RETURN_ERROR (PcdStatus); @@ -90,7 +90,7 @@ DetectSmbiosVersion ( return RETURN_SUCCESS; } =20 - DEBUG ((EFI_D_INFO, "%a: SMBIOS version from QEMU: 0x%04x\n", __FUNCTION= __, + DEBUG ((DEBUG_INFO, "%a: SMBIOS version from QEMU: 0x%04x\n", __FUNCTION= __, SmbiosVersion)); PcdStatus =3D PcdSet16S (PcdSmbiosVersion, SmbiosVersion); ASSERT_RETURN_ERROR (PcdStatus); diff --git a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c b/OvmfP= kg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c index d5bed3546d77..2f20272c1445 100644 --- a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c +++ b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c @@ -93,7 +93,7 @@ VirtioMmioInit ( // The ARM Base and Foundation Models do not report a valid VirtIo Ven= dorId. // They return a value of 0x0 for the VendorId. // - DEBUG((EFI_D_WARN, "VirtioMmioInit: Warning: The VendorId (0x%X) does = not " + DEBUG((DEBUG_WARN, "VirtioMmioInit: Warning: The VendorId (0x%X) does = not " "match the VirtIo VendorId (0x%X).\n", VendorId, VIRTIO_VENDOR_ID)); } diff --git a/OvmfPkg/Library/XenHypercallLib/XenHypercall.c b/OvmfPkg/Libra= ry/XenHypercallLib/XenHypercall.c index d4fa802743de..265aa766d0e8 100644 --- a/OvmfPkg/Library/XenHypercallLib/XenHypercall.c +++ b/OvmfPkg/Library/XenHypercallLib/XenHypercall.c @@ -45,7 +45,7 @@ XenHypercallHvmGetParam ( Error =3D XenHypercall2 (__HYPERVISOR_hvm_op, HVMOP_get_param, (INTN) &Parameter); if (Error !=3D 0) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenHypercall: Error %Ld trying to get HVM parameter %d\n", (INT64)Error, Index)); return 0; diff --git a/OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.c b/OvmfPkg/Library/= XenIoMmioLib/XenIoMmioLib.c index 154e4fdeb71c..ae4ea0309ac3 100644 --- a/OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.c +++ b/OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.c @@ -88,7 +88,7 @@ XenIoMmioInstall ( XenBusDevicePath =3D AllocateCopyPool (sizeof *XenBusDevicePath, &mXenBusRootDevicePathTemplate); if (!XenBusDevicePath) { - DEBUG ((EFI_D_ERROR, "%a: Out of memory\n", __FUNCTION__)); + DEBUG ((DEBUG_ERROR, "%a: Out of memory\n", __FUNCTION__)); Status =3D EFI_OUT_OF_RESOURCES; goto FreeXenIo; } @@ -103,7 +103,7 @@ XenIoMmioInstall ( return EFI_SUCCESS; } =20 - DEBUG ((EFI_D_ERROR, "%a: Failed to install the EFI_DEVICE_PATH and " + DEBUG ((DEBUG_ERROR, "%a: Failed to install the EFI_DEVICE_PATH and " "XENIO_PROTOCOL protocols on handle %p (Status =3D=3D %r)\n", __FUNCTION__, OutHandle, Status)); =20 diff --git a/OvmfPkg/PlatformDxe/Platform.c b/OvmfPkg/PlatformDxe/Platform.c index 23ad43901f66..d0435719a74e 100644 --- a/OvmfPkg/PlatformDxe/Platform.c +++ b/OvmfPkg/PlatformDxe/Platform.c @@ -243,7 +243,7 @@ ExtractConfig ( (VOID *) &MainFormState, sizeof MainFormSt= ate, Results, Progress); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: BlockToConfig(): %r, Progress=3D\"%s\"\n", + DEBUG ((DEBUG_ERROR, "%a: BlockToConfig(): %r, Progress=3D\"%s\"\n", __FUNCTION__, Status, (Status =3D=3D EFI_DEVICE_ERROR) ? NULL : *Pro= gress)); } else { DEBUG ((EFI_D_VERBOSE, "%a: Results=3D\"%s\"\n", __FUNCTION__, *Result= s)); @@ -343,7 +343,7 @@ RouteConfig ( Status =3D gHiiConfigRouting->ConfigToBlock (gHiiConfigRouting, Configur= ation, (VOID *) &MainFormState, &BlockSize, Progr= ess); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: ConfigToBlock(): %r, Progress=3D\"%s\"\n", + DEBUG ((DEBUG_ERROR, "%a: ConfigToBlock(): %r, Progress=3D\"%s\"\n", __FUNCTION__, Status, (Status =3D=3D EFI_BUFFER_TOO_SMALL) ? NULL : *Progress)); return Status; @@ -661,7 +661,7 @@ ExecutePlatformConfig ( =20 Status =3D PlatformConfigLoad (&PlatformConfig, &OptionalElements); if (EFI_ERROR (Status)) { - DEBUG (((Status =3D=3D EFI_NOT_FOUND) ? EFI_D_VERBOSE : EFI_D_ERROR, + DEBUG (((Status =3D=3D EFI_NOT_FOUND) ? EFI_D_VERBOSE : DEBUG_ERROR, "%a: failed to load platform config: %r\n", __FUNCTION__, Status)); return Status; } diff --git a/OvmfPkg/PlatformPei/FeatureControl.c b/OvmfPkg/PlatformPei/Fea= tureControl.c index 1a9d75022f48..fef27b25a033 100644 --- a/OvmfPkg/PlatformPei/FeatureControl.c +++ b/OvmfPkg/PlatformPei/FeatureControl.c @@ -78,7 +78,7 @@ OnMpServicesAvailable ( NULL // ProcedureArgument ); if (EFI_ERROR (Status) && Status !=3D EFI_NOT_STARTED) { - DEBUG ((EFI_D_ERROR, "%a: StartupAllAps(): %r\n", __FUNCTION__, Status= )); + DEBUG ((DEBUG_ERROR, "%a: StartupAllAps(): %r\n", __FUNCTION__, Status= )); return Status; } =20 @@ -122,7 +122,7 @@ InstallFeatureControlCallback ( =20 Status =3D PeiServicesNotifyPpi (&mMpServicesNotify); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: failed to set up MP Services callback: %r\n", + DEBUG ((DEBUG_ERROR, "%a: failed to set up MP Services callback: %r\n", __FUNCTION__, Status)); } } diff --git a/OvmfPkg/PlatformPei/Fv.c b/OvmfPkg/PlatformPei/Fv.c index 13b1dd38e6d6..ee4ecab615f9 100644 --- a/OvmfPkg/PlatformPei/Fv.c +++ b/OvmfPkg/PlatformPei/Fv.c @@ -28,7 +28,7 @@ PeiFvInitialization ( { BOOLEAN SecureS3Needed; =20 - DEBUG ((EFI_D_INFO, "Platform PEI Firmware Volume Initialization\n")); + DEBUG ((DEBUG_INFO, "Platform PEI Firmware Volume Initialization\n")); =20 // // Create a memory allocation HOB for the PEI FV. diff --git a/OvmfPkg/PlatformPei/MemDetect.c b/OvmfPkg/PlatformPei/MemDetec= t.c index 47dc9c543719..7a3ca88ecf2c 100644 --- a/OvmfPkg/PlatformPei/MemDetect.c +++ b/OvmfPkg/PlatformPei/MemDetect.c @@ -389,7 +389,7 @@ GetFirstNonAddress ( &FwCfgSize); if (!EFI_ERROR (Status)) { if (FwCfgSize >=3D sizeof MbString) { - DEBUG ((EFI_D_WARN, + DEBUG ((DEBUG_WARN, "%a: ignoring malformed 64-bit PCI host aperture size from fw_cfg\= n", __FUNCTION__)); } else { @@ -402,7 +402,7 @@ GetFirstNonAddress ( =20 if (Pci64Size =3D=3D 0) { if (mBootMode !=3D BOOT_ON_S3_RESUME) { - DEBUG ((EFI_D_INFO, "%a: disabling 64-bit PCI host aperture\n", + DEBUG ((DEBUG_INFO, "%a: disabling 64-bit PCI host aperture\n", __FUNCTION__)); PcdStatus =3D PcdSet64S (PcdPciMmio64Size, 0); ASSERT_RETURN_ERROR (PcdStatus); @@ -460,7 +460,7 @@ GetFirstNonAddress ( PcdStatus =3D PcdSet64S (PcdPciMmio64Size, Pci64Size); ASSERT_RETURN_ERROR (PcdStatus); =20 - DEBUG ((EFI_D_INFO, "%a: Pci64Base=3D0x%Lx Pci64Size=3D0x%Lx\n", + DEBUG ((DEBUG_INFO, "%a: Pci64Base=3D0x%Lx Pci64Size=3D0x%Lx\n", __FUNCTION__, Pci64Base, Pci64Size)); } =20 @@ -620,7 +620,7 @@ PublishPeiMemory ( MemorySize =3D mS3AcpiReservedMemorySize; } else { PeiMemoryCap =3D GetPeiMemoryCap (); - DEBUG ((EFI_D_INFO, "%a: mPhysMemAddressWidth=3D%d PeiMemoryCap=3D%u K= B\n", + DEBUG ((DEBUG_INFO, "%a: mPhysMemAddressWidth=3D%d PeiMemoryCap=3D%u K= B\n", __FUNCTION__, mPhysMemAddressWidth, PeiMemoryCap >> 10)); =20 // @@ -699,7 +699,7 @@ QemuInitializeRam ( MTRR_SETTINGS MtrrSettings; EFI_STATUS Status; =20 - DEBUG ((EFI_D_INFO, "%a called\n", __FUNCTION__)); + DEBUG ((DEBUG_INFO, "%a called\n", __FUNCTION__)); =20 // // Determine total memory size available diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index 088e616a980c..38b35b97f715 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -405,7 +405,7 @@ MiscInitialization ( AcpiEnBit =3D ICH9_ACPI_CNTL_ACPI_EN; break; default: - DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", + DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, mHostBridgeDevId)); ASSERT (FALSE); return; @@ -491,7 +491,7 @@ ReserveEmuVariableNvStore ( AllocateRuntimePages ( EFI_SIZE_TO_PAGES (2 * PcdGet32 (PcdFlashNvStorageFtwSpareSize)) ); - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "Reserved variable store memory: 0x%lX; size: %dkb\n", VariableStore, (2 * PcdGet32 (PcdFlashNvStorageFtwSpareSize)) / 1024 @@ -508,15 +508,15 @@ DebugDumpCmos ( { UINT32 Loop; =20 - DEBUG ((EFI_D_INFO, "CMOS:\n")); + DEBUG ((DEBUG_INFO, "CMOS:\n")); =20 for (Loop =3D 0; Loop < 0x80; Loop++) { if ((Loop % 0x10) =3D=3D 0) { - DEBUG ((EFI_D_INFO, "%02x:", Loop)); + DEBUG ((DEBUG_INFO, "%02x:", Loop)); } - DEBUG ((EFI_D_INFO, " %02x", CmosRead8 (Loop))); + DEBUG ((DEBUG_INFO, " %02x", CmosRead8 (Loop))); if ((Loop % 0x10) =3D=3D 0xf) { - DEBUG ((EFI_D_INFO, "\n")); + DEBUG ((DEBUG_INFO, "\n")); } } } @@ -529,12 +529,12 @@ S3Verification ( { #if defined (MDE_CPU_X64) if (FeaturePcdGet (PcdSmmSmramRequire) && mS3Supported) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "%a: S3Resume2Pei doesn't support X64 PEI + SMM yet.\n", __FUNCTION_= _)); - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "%a: Please disable S3 on the QEMU command line (see the README),\n", __FUNCTION__)); - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "%a: or build OVMF with \"OvmfPkgIa32X64.dsc\".\n", __FUNCTION__)); ASSERT (FALSE); CpuDeadLoop (); @@ -749,7 +749,7 @@ InitializePlatform ( XenDetect (); =20 if (QemuFwCfgS3Enabled ()) { - DEBUG ((EFI_D_INFO, "S3 support was detected on QEMU\n")); + DEBUG ((DEBUG_INFO, "S3 support was detected on QEMU\n")); mS3Supported =3D TRUE; Status =3D PcdSetBoolS (PcdAcpiS3Enable, TRUE); ASSERT_EFI_ERROR (Status); @@ -779,7 +779,7 @@ InitializePlatform ( InitializeRamRegions (); =20 if (mXen) { - DEBUG ((EFI_D_INFO, "Xen was detected\n")); + DEBUG ((DEBUG_INFO, "Xen was detected\n")); InitializeXen (); } =20 diff --git a/OvmfPkg/PlatformPei/Xen.c b/OvmfPkg/PlatformPei/Xen.c index 0904c654f149..104922c67e7e 100644 --- a/OvmfPkg/PlatformPei/Xen.c +++ b/OvmfPkg/PlatformPei/Xen.c @@ -93,7 +93,7 @@ XenConnect ( } =20 AsmCpuid (XenLeaf + 1, &XenVersion, NULL, NULL, NULL); - DEBUG ((EFI_D_ERROR, "Detected Xen version %d.%d\n", + DEBUG ((DEBUG_ERROR, "Detected Xen version %d.%d\n", XenVersion >> 16, XenVersion & 0xFFFF)); mXenInfo.VersionMajor =3D (UINT16)(XenVersion >> 16); mXenInfo.VersionMinor =3D (UINT16)(XenVersion & 0xFFFF); @@ -157,7 +157,7 @@ XenPublishRamRegions ( return; } =20 - DEBUG ((EFI_D_INFO, "Using memory map provided by Xen\n")); + DEBUG ((DEBUG_INFO, "Using memory map provided by Xen\n")); =20 // // Parse RAM in E820 map diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c b/Ovmf= Pkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c index 76a7853de04d..bc3f1bb5fdef 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c @@ -815,7 +815,7 @@ ValidateFvHeader ( Expected =3D (UINT16) (((UINTN) FwVolHeader->Checksum + 0x10000 - Checksum) & 0xf= fff); =20 - DEBUG ((EFI_D_INFO, "FV@%p Checksum is 0x%x, expected 0x%x\n", + DEBUG ((DEBUG_INFO, "FV@%p Checksum is 0x%x, expected 0x%x\n", FwVolHeader, FwVolHeader->Checksum, Expected)); return EFI_NOT_FOUND; } @@ -859,7 +859,7 @@ InitializeVariableFvHeader ( UINTN Offset; UINTN Start; =20 - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "Variable FV header is not valid. It will be reinitialized.\n")); =20 // @@ -929,7 +929,7 @@ FvbInitialize ( // // Return an error so image will be unloaded // - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "QEMU flash was not detected. Writable FVB is not being installed.\n= ")); return EFI_WRITE_PROTECTED; } @@ -946,7 +946,7 @@ FvbInitialize ( =20 Status =3D InitializeVariableFvHeader (); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "QEMU Flash: Unable to initialize variable FV header\n")); return EFI_WRITE_PROTECTED; } @@ -959,7 +959,7 @@ FvbInitialize ( // Status =3D GetFvbInfo (Length, &FwVolHeader); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_INFO, "EFI_ERROR (GetFvbInfo (Length, &FwVolHeader))\n= ")); + DEBUG ((DEBUG_INFO, "EFI_ERROR (GetFvbInfo (Length, &FwVolHeader))\n= ")); return EFI_WRITE_PROTECTED; } } diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c b/O= vmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c index e60978fa127b..1f285e008372 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c @@ -44,7 +44,7 @@ InstallProtocolInterfaces ( // LocateDevicePath fails so install a new interface and device path // FwbHandle =3D NULL; - DEBUG ((EFI_D_INFO, "Installing QEMU flash FVB\n")); + DEBUG ((DEBUG_INFO, "Installing QEMU flash FVB\n")); Status =3D gBS->InstallMultipleProtocolInterfaces ( &FwbHandle, &gEfiFirmwareVolumeBlockProtocolGuid, @@ -65,7 +65,7 @@ InstallProtocolInterfaces ( ); ASSERT_EFI_ERROR (Status); =20 - DEBUG ((EFI_D_INFO, "Reinstalling FVB for QEMU flash region\n")); + DEBUG ((DEBUG_INFO, "Reinstalling FVB for QEMU flash region\n")); Status =3D gBS->ReinstallProtocolInterface ( FwbHandle, &gEfiFirmwareVolumeBlockProtocolGuid, diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceSmm.c b/O= vmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceSmm.c index 2717930f75e3..544f88e661a8 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceSmm.c +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceSmm.c @@ -34,7 +34,7 @@ InstallProtocolInterfaces ( // Firmware Volume Block protocol structure. // FvbHandle =3D NULL; - DEBUG ((EFI_D_INFO, "Installing QEMU flash SMM FVB\n")); + DEBUG ((DEBUG_INFO, "Installing QEMU flash SMM FVB\n")); Status =3D gSmst->SmmInstallProtocolInterface ( &FvbHandle, &gEfiSmmFirmwareVolumeBlockProtocolGuid, diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c b/OvmfPkg/Q= emuFlashFvbServicesRuntimeDxe/QemuFlash.c index c81c58972bf2..1b0d6c053f1a 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c @@ -74,35 +74,35 @@ QemuFlashDetected ( } =20 if (Offset >=3D mFdBlockSize) { - DEBUG ((EFI_D_INFO, "QEMU Flash: Failed to find probe location\n")); + DEBUG ((DEBUG_INFO, "QEMU Flash: Failed to find probe location\n")); return FALSE; } =20 - DEBUG ((EFI_D_INFO, "QEMU Flash: Attempting flash detection at %p\n", Pt= r)); + DEBUG ((DEBUG_INFO, "QEMU Flash: Attempting flash detection at %p\n", Pt= r)); =20 OriginalUint8 =3D *Ptr; *Ptr =3D CLEAR_STATUS_CMD; ProbeUint8 =3D *Ptr; if (OriginalUint8 !=3D CLEAR_STATUS_CMD && ProbeUint8 =3D=3D CLEAR_STATUS_CMD) { - DEBUG ((EFI_D_INFO, "QemuFlashDetected =3D> FD behaves as RAM\n")); + DEBUG ((DEBUG_INFO, "QemuFlashDetected =3D> FD behaves as RAM\n")); *Ptr =3D OriginalUint8; } else { *Ptr =3D READ_STATUS_CMD; ProbeUint8 =3D *Ptr; if (ProbeUint8 =3D=3D OriginalUint8) { - DEBUG ((EFI_D_INFO, "QemuFlashDetected =3D> FD behaves as ROM\n")); + DEBUG ((DEBUG_INFO, "QemuFlashDetected =3D> FD behaves as ROM\n")); } else if (ProbeUint8 =3D=3D READ_STATUS_CMD) { - DEBUG ((EFI_D_INFO, "QemuFlashDetected =3D> FD behaves as RAM\n")); + DEBUG ((DEBUG_INFO, "QemuFlashDetected =3D> FD behaves as RAM\n")); *Ptr =3D OriginalUint8; } else if (ProbeUint8 =3D=3D CLEARED_ARRAY_STATUS) { - DEBUG ((EFI_D_INFO, "QemuFlashDetected =3D> FD behaves as FLASH\n")); + DEBUG ((DEBUG_INFO, "QemuFlashDetected =3D> FD behaves as FLASH\n")); FlashDetected =3D TRUE; *Ptr =3D READ_ARRAY_CMD; } } =20 - DEBUG ((EFI_D_INFO, "QemuFlashDetected =3D> %a\n", + DEBUG ((DEBUG_INFO, "QemuFlashDetected =3D> %a\n", FlashDetected ? "Yes" : "No")); return FlashDetected; } diff --git a/OvmfPkg/QemuVideoDxe/Driver.c b/OvmfPkg/QemuVideoDxe/Driver.c index 37bbbbe843c9..85edfcb1d6df 100644 --- a/OvmfPkg/QemuVideoDxe/Driver.c +++ b/OvmfPkg/QemuVideoDxe/Driver.c @@ -153,7 +153,7 @@ QemuVideoControllerDriverSupported ( } Card =3D QemuVideoDetect(Pci.Hdr.ClassCode[1], Pci.Hdr.VendorId, Pci.Hdr= .DeviceId); if (Card !=3D NULL) { - DEBUG ((EFI_D_INFO, "QemuVideo: %s detected\n", Card->Name)); + DEBUG ((DEBUG_INFO, "QemuVideo: %s detected\n", Card->Name)); Status =3D EFI_SUCCESS; } =20 @@ -324,10 +324,10 @@ QemuVideoControllerDriverStart ( ); if (EFI_ERROR (Status) || MmioDesc->ResType !=3D ACPI_ADDRESS_SPACE_TYPE_MEM) { - DEBUG ((EFI_D_INFO, "QemuVideo: No mmio bar, fallback to port io\n")= ); + DEBUG ((DEBUG_INFO, "QemuVideo: No mmio bar, fallback to port io\n")= ); Private->Variant =3D QEMU_VIDEO_BOCHS; } else { - DEBUG ((EFI_D_INFO, "QemuVideo: Using mmio bar @ 0x%lx\n", + DEBUG ((DEBUG_INFO, "QemuVideo: Using mmio bar @ 0x%lx\n", MmioDesc->AddrRangeMin)); } =20 @@ -352,7 +352,7 @@ QemuVideoControllerDriverStart ( UINT16 BochsId; BochsId =3D BochsRead(Private, VBE_DISPI_INDEX_ID); if ((BochsId & 0xFFF0) !=3D VBE_DISPI_ID0) { - DEBUG ((EFI_D_INFO, "QemuVideo: BochsID mismatch (got 0x%x)\n", Boch= sId)); + DEBUG ((DEBUG_INFO, "QemuVideo: BochsID mismatch (got 0x%x)\n", Boch= sId)); Status =3D EFI_DEVICE_ERROR; goto RestoreAttributes; } @@ -959,7 +959,7 @@ InitializeBochsGraphicsMode ( QEMU_VIDEO_BOCHS_MODES *ModeData ) { - DEBUG ((EFI_D_INFO, "InitializeBochsGraphicsMode: %dx%d @ %d\n", + DEBUG ((DEBUG_INFO, "InitializeBochsGraphicsMode: %dx%d @ %d\n", ModeData->Width, ModeData->Height, ModeData->ColorDepth)); =20 /* unblank */ diff --git a/OvmfPkg/QemuVideoDxe/Gop.c b/OvmfPkg/QemuVideoDxe/Gop.c index e49ec32cf16d..a44917eb6b62 100644 --- a/OvmfPkg/QemuVideoDxe/Gop.c +++ b/OvmfPkg/QemuVideoDxe/Gop.c @@ -30,7 +30,7 @@ QemuVideoCompleteModeInfo ( Info->PixelInformation.BlueMask =3D PIXEL24_BLUE_MASK; Info->PixelInformation.ReservedMask =3D 0; } else if (ModeData->ColorDepth =3D=3D 32) { - DEBUG ((EFI_D_INFO, "PixelBlueGreenRedReserved8BitPerColor\n")); + DEBUG ((DEBUG_INFO, "PixelBlueGreenRedReserved8BitPerColor\n")); Info->PixelFormat =3D PixelBlueGreenRedReserved8BitPerColor; } Info->PixelsPerScanLine =3D Info->HorizontalResolution; @@ -65,7 +65,7 @@ QemuVideoCompleteModeData ( Mode->FrameBufferSize =3D EFI_PAGES_TO_SIZE ( EFI_SIZE_TO_PAGES (Mode->FrameBufferSize) ); - DEBUG ((EFI_D_INFO, "FrameBufferBase: 0x%Lx, FrameBufferSize: 0x%Lx\n", + DEBUG ((DEBUG_INFO, "FrameBufferBase: 0x%Lx, FrameBufferSize: 0x%Lx\n", Mode->FrameBufferBase, (UINT64)Mode->FrameBufferSize)); =20 FreePool (FrameBufDesc); diff --git a/OvmfPkg/QemuVideoDxe/Initialize.c b/OvmfPkg/QemuVideoDxe/Initi= alize.c index 6ee42fb8d9d7..b5a5660ed2ee 100644 --- a/OvmfPkg/QemuVideoDxe/Initialize.c +++ b/OvmfPkg/QemuVideoDxe/Initialize.c @@ -180,7 +180,7 @@ QemuVideoCirrusModeSetup ( ModeData->HorizontalResolution =3D VideoMode->Width; ModeData->VerticalResolution =3D VideoMode->Height; ModeData->ColorDepth =3D VideoMode->ColorDepth; - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "Adding Mode %d as Cirrus Internal Mode %d: %dx%d, %d-bit\n", (INT32) (ModeData - Private->ModeData), ModeData->InternalModeIndex, @@ -289,7 +289,7 @@ QemuVideoBochsModeSetup ( EFI_ERROR ( Private->PciIo->Mem.Read (Private->PciIo, EfiPciIoWidthUint32, PCI_BAR_IDX2, 40, 1, &AvailableFbSize))) { - DEBUG ((EFI_D_ERROR, "%a: can't read size of drawable buffer from QX= L " + DEBUG ((DEBUG_ERROR, "%a: can't read size of drawable buffer from QX= L " "ROM\n", __FUNCTION__)); return EFI_NOT_FOUND; } @@ -297,7 +297,7 @@ QemuVideoBochsModeSetup ( AvailableFbSize =3D BochsRead (Private, VBE_DISPI_INDEX_VIDEO_MEMORY_= 64K); AvailableFbSize *=3D SIZE_64KB; } - DEBUG ((EFI_D_INFO, "%a: AvailableFbSize=3D0x%x\n", __FUNCTION__, + DEBUG ((DEBUG_INFO, "%a: AvailableFbSize=3D0x%x\n", __FUNCTION__, AvailableFbSize)); =20 // @@ -322,7 +322,7 @@ QemuVideoBochsModeSetup ( ModeData->HorizontalResolution =3D VideoMode->Width; ModeData->VerticalResolution =3D VideoMode->Height; ModeData->ColorDepth =3D VideoMode->ColorDepth; - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "Adding Mode %d as Bochs Internal Mode %d: %dx%d, %d-bit\n", (INT32) (ModeData - Private->ModeData), ModeData->InternalModeIndex, diff --git a/OvmfPkg/QemuVideoDxe/VbeShim.c b/OvmfPkg/QemuVideoDxe/VbeShim.c index c23dc984d453..048ffa7058ca 100644 --- a/OvmfPkg/QemuVideoDxe/VbeShim.c +++ b/OvmfPkg/QemuVideoDxe/VbeShim.c @@ -114,7 +114,7 @@ InstallVbeShim ( // Handler =3D (Int0x10->Segment << 4) + Int0x10->Offset; if (Handler >=3D SegmentC && Handler < SegmentF) { - DEBUG ((EFI_D_INFO, "%a: Video BIOS handler found at %04x:%04x\n", + DEBUG ((DEBUG_INFO, "%a: Video BIOS handler found at %04x:%04x\n", __FUNCTION__, Int0x10->Segment, Int0x10->Offset)); return; } @@ -312,5 +312,5 @@ InstallVbeShim ( Int0x10->Segment =3D (UINT16) ((UINT32)SegmentC >> 4); Int0x10->Offset =3D (UINT16) ((UINTN) (VbeModeInfo + 1) - SegmentC); =20 - DEBUG ((EFI_D_INFO, "%a: VBE shim installed\n", __FUNCTION__)); + DEBUG ((DEBUG_INFO, "%a: VBE shim installed\n", __FUNCTION__)); } diff --git a/OvmfPkg/SataControllerDxe/SataController.c b/OvmfPkg/SataContr= ollerDxe/SataController.c index 313bfab1bea5..a5b5f04d2708 100644 --- a/OvmfPkg/SataControllerDxe/SataController.c +++ b/OvmfPkg/SataControllerDxe/SataController.c @@ -118,7 +118,7 @@ CalculateBestPioMode ( if ((IdentifyData->AtaData.field_validity & 0x02) =3D=3D 0x02) { =20 AdvancedPioMode =3D IdentifyData->AtaData.advanced_pio_modes; - DEBUG ((EFI_D_INFO, "CalculateBestPioMode: AdvancedPioMode =3D %x\n", = AdvancedPioMode)); + DEBUG ((DEBUG_INFO, "CalculateBestPioMode: AdvancedPioMode =3D %x\n", = AdvancedPioMode)); =20 for (Index =3D 0; Index < 8; Index++) { if ((AdvancedPioMode & 0x01) !=3D 0) { @@ -232,7 +232,7 @@ CalculateBestUdmaMode ( } =20 DeviceUDmaMode =3D IdentifyData->AtaData.ultra_dma_mode; - DEBUG ((EFI_D_INFO, "CalculateBestUdmaMode: DeviceUDmaMode =3D %x\n", De= viceUDmaMode)); + DEBUG ((DEBUG_INFO, "CalculateBestUdmaMode: DeviceUDmaMode =3D %x\n", De= viceUDmaMode)); DeviceUDmaMode &=3D 0x3f; TempMode =3D 0; // initialize it to UDMA-0 =20 @@ -391,7 +391,7 @@ SataControllerStart ( UINT32 Data32; UINTN ChannelDeviceCount; =20 - DEBUG ((EFI_D_INFO, "SataControllerStart START\n")); + DEBUG ((DEBUG_INFO, "SataControllerStart START\n")); =20 BailLogMask =3D DEBUG_ERROR; SataPrivateData =3D NULL; @@ -518,7 +518,7 @@ SataControllerStart ( goto FreeIdentifyValid; } =20 - DEBUG ((EFI_D_INFO, "SataControllerStart END status =3D %r\n", Status)); + DEBUG ((DEBUG_INFO, "SataControllerStart END status =3D %r\n", Status)); return Status; =20 FreeIdentifyValid: @@ -1034,7 +1034,7 @@ IdeInitCalculateMode ( } else { (*SupportedModes)->PioMode.Valid =3D FALSE; } - DEBUG ((EFI_D_INFO, "IdeInitCalculateMode: PioMode =3D %x\n", (*Supporte= dModes)->PioMode.Mode)); + DEBUG ((DEBUG_INFO, "IdeInitCalculateMode: PioMode =3D %x\n", (*Supporte= dModes)->PioMode.Mode)); =20 Status =3D CalculateBestUdmaMode ( IdentifyData, @@ -1049,7 +1049,7 @@ IdeInitCalculateMode ( } else { (*SupportedModes)->UdmaMode.Valid =3D FALSE; } - DEBUG ((EFI_D_INFO, "IdeInitCalculateMode: UdmaMode =3D %x\n", (*Support= edModes)->UdmaMode.Mode)); + DEBUG ((DEBUG_INFO, "IdeInitCalculateMode: UdmaMode =3D %x\n", (*Support= edModes)->UdmaMode.Mode)); =20 // // The modes other than PIO and UDMA are not supported diff --git a/OvmfPkg/Sec/SecMain.c b/OvmfPkg/Sec/SecMain.c index bae9764577f0..4e94d1fd180f 100644 --- a/OvmfPkg/Sec/SecMain.c +++ b/OvmfPkg/Sec/SecMain.c @@ -256,7 +256,7 @@ FindFfsFileAndSection ( EFI_PHYSICAL_ADDRESS EndOfFile; =20 if (Fv->Signature !=3D EFI_FVH_SIGNATURE) { - DEBUG ((EFI_D_ERROR, "FV at %p does not have FV header signature\n", F= v)); + DEBUG ((DEBUG_ERROR, "FV at %p does not have FV header signature\n", F= v)); return EFI_VOLUME_CORRUPTED; } =20 @@ -342,7 +342,7 @@ DecompressMemFvs ( (EFI_COMMON_SECTION_HEADER**) &Section ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "Unable to find GUID defined section\n")); + DEBUG ((DEBUG_ERROR, "Unable to find GUID defined section\n")); return Status; } =20 @@ -353,7 +353,7 @@ DecompressMemFvs ( &SectionAttribute ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "Unable to GetInfo for GUIDed section\n")); + DEBUG ((DEBUG_ERROR, "Unable to GetInfo for GUIDed section\n")); return Status; } =20 @@ -374,7 +374,7 @@ DecompressMemFvs ( &AuthenticationStatus ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "Error during GUID section decode\n")); + DEBUG ((DEBUG_ERROR, "Error during GUID section decode\n")); return Status; } =20 @@ -386,7 +386,7 @@ DecompressMemFvs ( &FvSection ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "Unable to find PEI FV section\n")); + DEBUG ((DEBUG_ERROR, "Unable to find PEI FV section\n")); return Status; } =20 @@ -398,7 +398,7 @@ DecompressMemFvs ( CopyMem (PeiMemFv, (VOID*) (FvSection + 1), PcdGet32 (PcdOvmfPeiMemFvSiz= e)); =20 if (PeiMemFv->Signature !=3D EFI_FVH_SIGNATURE) { - DEBUG ((EFI_D_ERROR, "Extracted FV at %p does not have FV header signa= ture\n", PeiMemFv)); + DEBUG ((DEBUG_ERROR, "Extracted FV at %p does not have FV header signa= ture\n", PeiMemFv)); CpuDeadLoop (); return EFI_VOLUME_CORRUPTED; } @@ -411,7 +411,7 @@ DecompressMemFvs ( &FvSection ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "Unable to find DXE FV section\n")); + DEBUG ((DEBUG_ERROR, "Unable to find DXE FV section\n")); return Status; } =20 @@ -431,7 +431,7 @@ DecompressMemFvs ( CopyMem (DxeMemFv, (VOID*) ((UINTN)FvSection + FvHeaderSize), PcdGet32 (= PcdOvmfDxeMemFvSize)); =20 if (DxeMemFv->Signature !=3D EFI_FVH_SIGNATURE) { - DEBUG ((EFI_D_ERROR, "Extracted FV at %p does not have FV header signa= ture\n", DxeMemFv)); + DEBUG ((DEBUG_ERROR, "Extracted FV at %p does not have FV header signa= ture\n", DxeMemFv)); CpuDeadLoop (); return EFI_VOLUME_CORRUPTED; } @@ -474,7 +474,7 @@ FindPeiCoreImageBaseInFv ( &Section ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "Unable to find PEI Core image\n")); + DEBUG ((DEBUG_ERROR, "Unable to find PEI Core image\n")); return Status; } } @@ -739,7 +739,7 @@ SecCoreStartupWithStack ( =20 ProcessLibraryConstructorList (NULL, NULL); =20 - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "SecCoreStartupWithStack(0x%x, 0x%x)\n", (UINT32)(UINTN)BootFv, (UINT32)(UINTN)TopOfCurrentStack @@ -882,7 +882,7 @@ TemporaryRamMigration ( BOOLEAN OldStatus; BASE_LIBRARY_JUMP_BUFFER JumpBuffer; =20 - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "TemporaryRamMigration(0x%Lx, 0x%Lx, 0x%Lx)\n", TemporaryMemoryBase, PermanentMemoryBase, diff --git a/OvmfPkg/SmmAccess/SmmAccessPei.c b/OvmfPkg/SmmAccess/SmmAccess= Pei.c index c8bbc17e907a..84278bad9d69 100644 --- a/OvmfPkg/SmmAccess/SmmAccessPei.c +++ b/OvmfPkg/SmmAccess/SmmAccessPei.c @@ -258,7 +258,7 @@ SmmAccessPeiEntryPoint ( // HostBridgeDevId =3D PciRead16 (OVMF_HOSTBRIDGE_DID); if (HostBridgeDevId !=3D INTEL_Q35_MCH_DEVICE_ID) { - DEBUG ((EFI_D_ERROR, "%a: no SMRAM with host bridge DID=3D0x%04x; only= " + DEBUG ((DEBUG_ERROR, "%a: no SMRAM with host bridge DID=3D0x%04x; only= " "DID=3D0x%04x (Q35) is supported\n", __FUNCTION__, HostBridgeDevId, INTEL_Q35_MCH_DEVICE_ID)); goto WrongConfig; @@ -274,7 +274,7 @@ SmmAccessPeiEntryPoint ( EsmramcVal =3D PciRead8 (DRAMC_REGISTER_Q35 (MCH_ESMRAMC)); RegMask8 =3D MCH_ESMRAMC_SM_CACHE | MCH_ESMRAMC_SM_L1 | MCH_ESMRAMC_SM_L= 2; if ((EsmramcVal & RegMask8) !=3D RegMask8) { - DEBUG ((EFI_D_ERROR, "%a: this Q35 implementation lacks SMRAM\n", + DEBUG ((DEBUG_ERROR, "%a: this Q35 implementation lacks SMRAM\n", __FUNCTION__)); goto WrongConfig; } diff --git a/OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c b/OvmfPkg/SmmControl2D= xe/SmmControl2Dxe.c index f8940e4d9b54..9547c202880f 100644 --- a/OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c +++ b/OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c @@ -204,7 +204,7 @@ SmmControl2DxeEntryPoint ( // SmiEnableVal =3D IoRead32 (mSmiEnable); if ((SmiEnableVal & ICH9_SMI_EN_APMC_EN) !=3D 0) { - DEBUG ((EFI_D_ERROR, "%a: this Q35 implementation lacks SMI\n", + DEBUG ((DEBUG_ERROR, "%a: this Q35 implementation lacks SMI\n", __FUNCTION__)); goto FatalError; } @@ -228,7 +228,7 @@ SmmControl2DxeEntryPoint ( // IoWrite32 (mSmiEnable, SmiEnableVal & ~(UINT32)ICH9_SMI_EN_GBL_SMI_EN); if (IoRead32 (mSmiEnable) !=3D SmiEnableVal) { - DEBUG ((EFI_D_ERROR, "%a: failed to lock down GBL_SMI_EN\n", + DEBUG ((DEBUG_ERROR, "%a: failed to lock down GBL_SMI_EN\n", __FUNCTION__)); goto FatalError; } @@ -250,14 +250,14 @@ SmmControl2DxeEntryPoint ( OnS3SaveStateInstalled, NULL /* Context */, &mS3SaveStateInstalled); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: CreateEvent: %r\n", __FUNCTION__, Status)); + DEBUG ((DEBUG_ERROR, "%a: CreateEvent: %r\n", __FUNCTION__, Status)); goto FatalError; } =20 Status =3D gBS->RegisterProtocolNotify (&gEfiS3SaveStateProtocolGuid, mS3SaveStateInstalled, &Registration); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: RegisterProtocolNotify: %r\n", __FUNCTION_= _, + DEBUG ((DEBUG_ERROR, "%a: RegisterProtocolNotify: %r\n", __FUNCTION_= _, Status)); goto ReleaseEvent; } @@ -267,7 +267,7 @@ SmmControl2DxeEntryPoint ( // Status =3D gBS->SignalEvent (mS3SaveStateInstalled); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: SignalEvent: %r\n", __FUNCTION__, Status)); + DEBUG ((DEBUG_ERROR, "%a: SignalEvent: %r\n", __FUNCTION__, Status)); goto ReleaseEvent; } } @@ -280,7 +280,7 @@ SmmControl2DxeEntryPoint ( &gEfiSmmControl2ProtocolGuid, &mControl2, NULL); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: InstallMultipleProtocolInterfaces: %r\n", + DEBUG ((DEBUG_ERROR, "%a: InstallMultipleProtocolInterfaces: %r\n", __FUNCTION__, Status)); goto ReleaseEvent; } @@ -346,7 +346,7 @@ OnS3SaveStateInstalled ( &SmiEnAndMask ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "%a: EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE: %r\n", + DEBUG ((DEBUG_ERROR, "%a: EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE: %r\n", __FUNCTION__, Status)); ASSERT (FALSE); CpuDeadLoop (); @@ -365,7 +365,7 @@ OnS3SaveStateInstalled ( &GenPmCon1AndMask ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "%a: EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE: %r\n", __FUNCTION= __, Status)); ASSERT (FALSE); diff --git a/OvmfPkg/VirtioGpuDxe/Commands.c b/OvmfPkg/VirtioGpuDxe/Command= s.c index 8fb6cad52dc7..1645100a05d5 100644 --- a/OvmfPkg/VirtioGpuDxe/Commands.c +++ b/OvmfPkg/VirtioGpuDxe/Commands.c @@ -389,7 +389,7 @@ VirtioGpuExitBoot ( @retval EFI_SUCCESS Operation successful. =20 @retval EFI_DEVICE_ERROR The host rejected the request. The host e= rror - code has been logged on the EFI_D_ERROR l= evel. + code has been logged on the DEBUG_ERROR l= evel. =20 @return Codes for unexpected errors in VirtIo messaging, or request/response @@ -489,7 +489,7 @@ VirtioGpuSendCommand ( // Verify response size. // if (ResponseSize !=3D sizeof Response) { - DEBUG ((EFI_D_ERROR, "%a: malformed response to Request=3D0x%x\n", + DEBUG ((DEBUG_ERROR, "%a: malformed response to Request=3D0x%x\n", __FUNCTION__, (UINT32)RequestType)); Status =3D EFI_PROTOCOL_ERROR; goto UnmapResponse; @@ -516,7 +516,7 @@ VirtioGpuSendCommand ( return EFI_SUCCESS; } =20 - DEBUG ((EFI_D_ERROR, "%a: Request=3D0x%x Response=3D0x%x\n", __FUNCTION_= _, + DEBUG ((DEBUG_ERROR, "%a: Request=3D0x%x Response=3D0x%x\n", __FUNCTION_= _, (UINT32)RequestType, Response.Type)); return EFI_DEVICE_ERROR; =20 @@ -546,7 +546,7 @@ VirtioGpuSendCommand ( @retval EFI_SUCCESS Operation successful. =20 @retval EFI_DEVICE_ERROR The host rejected the request. The host e= rror - code has been logged on the EFI_D_ERROR l= evel. + code has been logged on the DEBUG_ERROR l= evel. =20 @return Codes for unexpected errors in VirtIo messaging. diff --git a/OvmfPkg/VirtioGpuDxe/DriverBinding.c b/OvmfPkg/VirtioGpuDxe/Dr= iverBinding.c index bf53a9306f52..666d57754732 100644 --- a/OvmfPkg/VirtioGpuDxe/DriverBinding.c +++ b/OvmfPkg/VirtioGpuDxe/DriverBinding.c @@ -651,7 +651,7 @@ VirtioGpuDriverBindingStart ( // // No child handle should be produced; we're done. // - DEBUG ((EFI_D_INFO, "%a: bound VirtIo=3D%p without producing GOP\n", + DEBUG ((DEBUG_INFO, "%a: bound VirtIo=3D%p without producing GOP\n", __FUNCTION__, (VOID *)VgpuDev->VirtIo)); return EFI_SUCCESS; } @@ -674,7 +674,7 @@ VirtioGpuDriverBindingStart ( // // We're done. // - DEBUG ((EFI_D_INFO, "%a: produced GOP %a VirtIo=3D%p\n", __FUNCTION__, + DEBUG ((DEBUG_INFO, "%a: produced GOP %a VirtIo=3D%p\n", __FUNCTION__, VirtIoBoundJustNow ? "while binding" : "for pre-bound", (VOID *)VgpuDev->VirtIo)); return EFI_SUCCESS; @@ -756,7 +756,7 @@ VirtioGpuDriverBindingStop ( break; } =20 - DEBUG ((EFI_D_INFO, "%a: unbinding GOP-less VirtIo=3D%p\n", __FUNCTION= __, + DEBUG ((DEBUG_INFO, "%a: unbinding GOP-less VirtIo=3D%p\n", __FUNCTION= __, (VOID *)VgpuDev->VirtIo)); =20 Status =3D gBS->UninstallProtocolInterface (ControllerHandle, @@ -797,7 +797,7 @@ VirtioGpuDriverBindingStop ( VgpuDev->Child->GopHandle, &gVirtioDeviceProtocolGuid)); =20 - DEBUG ((EFI_D_INFO, "%a: destroying GOP under VirtIo=3D%p\n", __FUNCTI= ON__, + DEBUG ((DEBUG_INFO, "%a: destroying GOP under VirtIo=3D%p\n", __FUNCTI= ON__, (VOID *)VgpuDev->VirtIo)); UninitVgpuGop (VgpuDev, ControllerHandle, This->DriverBindingHandle); break; diff --git a/OvmfPkg/VirtioGpuDxe/VirtioGpu.h b/OvmfPkg/VirtioGpuDxe/Virtio= Gpu.h index c32052d83a82..236cc4789237 100644 --- a/OvmfPkg/VirtioGpuDxe/VirtioGpu.h +++ b/OvmfPkg/VirtioGpuDxe/VirtioGpu.h @@ -295,7 +295,7 @@ VirtioGpuExitBoot ( @retval EFI_SUCCESS Operation successful. =20 @retval EFI_DEVICE_ERROR The host rejected the request. The host e= rror - code has been logged on the EFI_D_ERROR l= evel. + code has been logged on the DEBUG_ERROR l= evel. =20 @return Codes for unexpected errors in VirtIo messaging. diff --git a/OvmfPkg/XenBusDxe/EventChannel.c b/OvmfPkg/XenBusDxe/EventChan= nel.c index 690007178288..6c905b511f80 100644 --- a/OvmfPkg/XenBusDxe/EventChannel.c +++ b/OvmfPkg/XenBusDxe/EventChannel.c @@ -44,7 +44,7 @@ XenBusEventChannelAllocate ( EVTCHNOP_alloc_unbound, &Parameter); if (ReturnCode !=3D 0) { - DEBUG ((EFI_D_ERROR, "ERROR: alloc_unbound failed with rc=3D%d", Retur= nCode)); + DEBUG ((DEBUG_ERROR, "ERROR: alloc_unbound failed with rc=3D%d", Retur= nCode)); return ReturnCode; } *Port =3D Parameter.port; diff --git a/OvmfPkg/XenBusDxe/GrantTable.c b/OvmfPkg/XenBusDxe/GrantTable.c index 1130404cd198..58d687abad6b 100644 --- a/OvmfPkg/XenBusDxe/GrantTable.c +++ b/OvmfPkg/XenBusDxe/GrantTable.c @@ -107,7 +107,7 @@ XenGrantTableEndAccess ( OldFlags =3D GrantTable[Ref].flags; do { if ((Flags =3D OldFlags) & (GTF_reading | GTF_writing)) { - DEBUG ((EFI_D_WARN, "WARNING: g.e. still in use! (%x)\n", Flags)); + DEBUG ((DEBUG_WARN, "WARNING: g.e. still in use! (%x)\n", Flags)); return EFI_NOT_READY; } OldFlags =3D InterlockedCompareExchange16 (&GrantTable[Ref].flags, Fla= gs, 0); @@ -142,7 +142,7 @@ XenGrantTableInit ( Parameters.gpfn =3D (xen_pfn_t) ((UINTN) GrantTable >> EFI_PAGE_SHIFT)= + Index; ReturnCode =3D XenHypercallMemoryOp (XENMEM_add_to_physmap, &Parameter= s); if (ReturnCode !=3D 0) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "Xen GrantTable, add_to_physmap hypercall error: %Ld\n", (INT64)ReturnCode)); } @@ -164,11 +164,11 @@ XenGrantTableDeinit ( for (Index =3D NR_GRANT_FRAMES - 1; Index >=3D 0; Index--) { Parameters.domid =3D DOMID_SELF; Parameters.gpfn =3D (xen_pfn_t) ((UINTN) GrantTable >> EFI_PAGE_SHIFT)= + Index; - DEBUG ((EFI_D_INFO, "Xen GrantTable, removing %Lx\n", + DEBUG ((DEBUG_INFO, "Xen GrantTable, removing %Lx\n", (UINT64)Parameters.gpfn)); ReturnCode =3D XenHypercallMemoryOp (XENMEM_remove_from_physmap, &Para= meters); if (ReturnCode !=3D 0) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "Xen GrantTable, remove_from_physmap hypercall error: %Ld\n", (INT64)ReturnCode)); } diff --git a/OvmfPkg/XenBusDxe/XenBus.c b/OvmfPkg/XenBusDxe/XenBus.c index a203beaaa7e7..f8a41b6d3632 100644 --- a/OvmfPkg/XenBusDxe/XenBus.c +++ b/OvmfPkg/XenBusDxe/XenBus.c @@ -148,7 +148,7 @@ XenBusAddDevice ( * happen if a device is going away after * switching to Closed. */ - DEBUG ((EFI_D_INFO, "XenBus: Device %a ignored. " + DEBUG ((DEBUG_INFO, "XenBus: Device %a ignored. " "State %d\n", DevicePath, State)); Status =3D EFI_SUCCESS; goto out; @@ -157,7 +157,7 @@ XenBusAddDevice ( StatusXenStore =3D XenStoreRead (XST_NIL, DevicePath, "backend", NULL, (VOID **) &BackendPath); if (StatusXenStore !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "xenbus: %a no backend path.\n", DevicePath)); + DEBUG ((DEBUG_ERROR, "xenbus: %a no backend path.\n", DevicePath)); Status =3D EFI_NOT_FOUND; goto out; } @@ -197,12 +197,12 @@ XenBusAddDevice ( Private->Handle, EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "open by child controller fail (%r)\n", + DEBUG ((DEBUG_ERROR, "open by child controller fail (%r)\n", Status)); goto ErrorOpenProtocolByChild; } } else { - DEBUG ((EFI_D_ERROR, "XenBus: does not exist: %a\n", DevicePath)); + DEBUG ((DEBUG_ERROR, "XenBus: does not exist: %a\n", DevicePath)); Status =3D EFI_NOT_FOUND; } =20 @@ -312,7 +312,7 @@ XenBusSetState ( XENSTORE_STATUS Status; CHAR8 *Temp; =20 - DEBUG ((EFI_D_INFO, "XenBus: Set state to %d\n", NewState)); + DEBUG ((DEBUG_INFO, "XenBus: Set state to %d\n", NewState)); =20 Status =3D XenStoreRead (Transaction, This->Node, "state", NULL, (VOID *= *)&Temp); if (Status !=3D XENSTORE_STATUS_SUCCESS) { @@ -328,10 +328,10 @@ XenBusSetState ( Status =3D XenStoreSPrint (Transaction, This->Node, "state", "%d", New= State); } while (Status =3D=3D XENSTORE_STATUS_EAGAIN); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "XenBus: failed to write new state\n")); + DEBUG ((DEBUG_ERROR, "XenBus: failed to write new state\n")); goto Out; } - DEBUG ((EFI_D_INFO, "XenBus: Set state to %d, done\n", NewState)); + DEBUG ((DEBUG_INFO, "XenBus: Set state to %d, done\n", NewState)); =20 Out: return Status; diff --git a/OvmfPkg/XenBusDxe/XenBusDxe.c b/OvmfPkg/XenBusDxe/XenBusDxe.c index c47fad2e80bb..1f5628ad8342 100644 --- a/OvmfPkg/XenBusDxe/XenBusDxe.c +++ b/OvmfPkg/XenBusDxe/XenBusDxe.c @@ -362,7 +362,7 @@ XenBusDxeDriverBindingStart ( =20 Status =3D XenGetSharedInfoPage (Dev); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "XenBus: Unable to get the shared info page.\n")); + DEBUG ((DEBUG_ERROR, "XenBus: Unable to get the shared info page.\n")); Status =3D EFI_UNSUPPORTED; goto ErrorAllocated; } @@ -442,7 +442,7 @@ XenBusDxeDriverBindingStop ( ControllerHandle, EFI_OPEN_PROTOCOL_GET_PROTOCOL); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "XenBusDxe: get children protocol failed: %r\n"= , Status)); + DEBUG ((DEBUG_ERROR, "XenBusDxe: get children protocol failed: %r\n"= , Status)); continue; } ChildData =3D XENBUS_PRIVATE_DATA_FROM_THIS (XenBusIo); diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c index 41fcb390888c..e5cca108e06b 100644 --- a/OvmfPkg/XenBusDxe/XenStore.c +++ b/OvmfPkg/XenBusDxe/XenStore.c @@ -467,7 +467,7 @@ XenStoreWriteStore ( Status =3D XenStoreWaitForEvent (xs.EventChannelEvent, EFI_TIMER_PERIOD_SECONDS (1)); if (Status =3D=3D EFI_TIMEOUT) { - DEBUG ((EFI_D_WARN, "XenStore Write, waiting for a ring event.\n")= ); + DEBUG ((DEBUG_WARN, "XenStore Write, waiting for a ring event.\n")= ); } continue; } @@ -546,7 +546,7 @@ XenStoreReadStore ( Status =3D XenStoreWaitForEvent (xs.EventChannelEvent, EFI_TIMER_PERIOD_SECONDS (1)); if (Status =3D=3D EFI_TIMEOUT) { - DEBUG ((EFI_D_WARN, "XenStore Read, waiting for a ring event.\n")); + DEBUG ((DEBUG_WARN, "XenStore Read, waiting for a ring event.\n")); } continue; } @@ -617,7 +617,7 @@ XenStoreProcessMessage ( Status =3D XenStoreReadStore (&Message->Header, sizeof (Message->Header)= ); if (Status !=3D XENSTORE_STATUS_SUCCESS) { FreePool (Message); - DEBUG ((EFI_D_ERROR, "XenStore: Error read store (%d)\n", Status)); + DEBUG ((DEBUG_ERROR, "XenStore: Error read store (%d)\n", Status)); return Status; } =20 @@ -626,7 +626,7 @@ XenStoreProcessMessage ( if (Status !=3D XENSTORE_STATUS_SUCCESS) { FreePool (Body); FreePool (Message); - DEBUG ((EFI_D_ERROR, "XenStore: Error read store (%d)\n", Status)); + DEBUG ((DEBUG_ERROR, "XenStore: Error read store (%d)\n", Status)); return Status; } Body[Message->Header.len] =3D '\0'; @@ -638,14 +638,14 @@ XenStoreProcessMessage ( EfiAcquireLock (&xs.RegisteredWatchesLock); Message->u.Watch.Handle =3D XenStoreFindWatch (Message->u.Watch.Vector[XS_WATCH_TOKEN]); - DEBUG ((EFI_D_INFO, "XenStore: Watch event %a\n", + DEBUG ((DEBUG_INFO, "XenStore: Watch event %a\n", Message->u.Watch.Vector[XS_WATCH_TOKEN])); if (Message->u.Watch.Handle !=3D NULL) { EfiAcquireLock (&xs.WatchEventsLock); InsertHeadList (&xs.WatchEvents, &Message->Link); EfiReleaseLock (&xs.WatchEventsLock); } else { - DEBUG ((EFI_D_WARN, "XenStore: Watch handle %a not found\n", + DEBUG ((DEBUG_WARN, "XenStore: Watch handle %a not found\n", Message->u.Watch.Vector[XS_WATCH_TOKEN])); FreePool((VOID*)Message->u.Watch.Vector); FreePool(Message); @@ -711,7 +711,7 @@ XenStoreGetError ( return gXenStoreErrors[Index].Status; } } - DEBUG ((EFI_D_WARN, "XenStore gave unknown error %a\n", ErrorStr)); + DEBUG ((DEBUG_WARN, "XenStore gave unknown error %a\n", ErrorStr)); return XENSTORE_STATUS_EINVAL; } =20 @@ -738,7 +738,7 @@ XenStoreReadReply ( XENSTORE_STATUS Status; Status =3D XenStoreProcessMessage (); if (Status !=3D XENSTORE_STATUS_SUCCESS && Status !=3D XENSTORE_STATUS= _EAGAIN) { - DEBUG ((EFI_D_ERROR, "XenStore, error while reading the ring (%d).", + DEBUG ((DEBUG_ERROR, "XenStore, error while reading the ring (%d).", Status)); return Status; } @@ -803,14 +803,14 @@ XenStoreTalkv ( =20 Status =3D XenStoreWriteStore (&Message, sizeof (Message)); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "XenStoreTalkv failed %d\n", Status)); + DEBUG ((DEBUG_ERROR, "XenStoreTalkv failed %d\n", Status)); goto Error; } =20 for (Index =3D 0; Index < NumRequests; Index++) { Status =3D XenStoreWriteStore (WriteRequest[Index].Data, WriteRequest[= Index].Len); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "XenStoreTalkv failed %d\n", Status)); + DEBUG ((DEBUG_ERROR, "XenStoreTalkv failed %d\n", Status)); goto Error; } } @@ -1006,7 +1006,7 @@ XenStoreInitComms ( while (XenStore->rsp_prod !=3D XenStore->rsp_cons) { Status =3D gBS->CheckEvent (TimerEvent); if (!EFI_ERROR (Status)) { - DEBUG ((EFI_D_WARN, "XENSTORE response ring is not quiescent " + DEBUG ((DEBUG_WARN, "XENSTORE response ring is not quiescent " "(%08x:%08x): fixing up\n", XenStore->rsp_cons, XenStore->rsp_prod)); XenStore->rsp_cons =3D XenStore->rsp_prod; @@ -1046,7 +1046,7 @@ XenStoreInit ( xs.EventChannel =3D (evtchn_port_t)XenHypercallHvmGetParam (HVM_PARAM_ST= ORE_EVTCHN); XenStoreGpfn =3D (UINTN)XenHypercallHvmGetParam (HVM_PARAM_STORE_PFN); xs.XenStore =3D (VOID *) (XenStoreGpfn << EFI_PAGE_SHIFT); - DEBUG ((EFI_D_INFO, "XenBusInit: XenBus rings @%p, event channel %x\n", + DEBUG ((DEBUG_INFO, "XenBusInit: XenBus rings @%p, event channel %x\n", xs.XenStore, xs.EventChannel)); =20 InitializeListHead (&xs.ReplyList); @@ -1076,7 +1076,7 @@ XenStoreDeinit ( if (!IsListEmpty (&xs.RegisteredWatches)) { XENSTORE_WATCH *Watch; LIST_ENTRY *Entry; - DEBUG ((EFI_D_WARN, "XenStore: RegisteredWatches is not empty, cleanin= g up...")); + DEBUG ((DEBUG_WARN, "XenStore: RegisteredWatches is not empty, cleanin= g up...")); Entry =3D GetFirstNode (&xs.RegisteredWatches); while (!IsNull (&xs.RegisteredWatches, Entry)) { Watch =3D XENSTORE_WATCH_FROM_LINK (Entry); @@ -1092,7 +1092,7 @@ XenStoreDeinit ( // if (!IsListEmpty (&xs.WatchEvents)) { LIST_ENTRY *Entry; - DEBUG ((EFI_D_WARN, "XenStore: WatchEvents is not empty, cleaning up..= .")); + DEBUG ((DEBUG_WARN, "XenStore: WatchEvents is not empty, cleaning up..= .")); Entry =3D GetFirstNode (&xs.WatchEvents); while (!IsNull (&xs.WatchEvents, Entry)) { XENSTORE_MESSAGE *Message =3D XENSTORE_MESSAGE_FROM_LINK (Entry); diff --git a/OvmfPkg/XenIoPciDxe/XenIoPciDxe.c b/OvmfPkg/XenIoPciDxe/XenIoP= ciDxe.c index 5e7bd94b8951..0b3fd03e08d3 100644 --- a/OvmfPkg/XenIoPciDxe/XenIoPciDxe.c +++ b/OvmfPkg/XenIoPciDxe/XenIoPciDxe.c @@ -175,7 +175,7 @@ XenIoPciDeviceBindingStart ( ASSERT (BarDesc->ResType =3D=3D ACPI_ADDRESS_SPACE_TYPE_MEM); =20 /* Get a Memory address for mapping the Grant Table. */ - DEBUG ((EFI_D_INFO, "XenIoPci: BAR at %LX\n", BarDesc->AddrRangeMin)); + DEBUG ((DEBUG_INFO, "XenIoPci: BAR at %LX\n", BarDesc->AddrRangeMin)); XenIo->GrantTableAddress =3D BarDesc->AddrRangeMin; FreePool (BarDesc); =20 diff --git a/OvmfPkg/XenPvBlkDxe/BlockFront.c b/OvmfPkg/XenPvBlkDxe/BlockFr= ont.c index f57f85731568..122a6baed25a 100644 --- a/OvmfPkg/XenPvBlkDxe/BlockFront.c +++ b/OvmfPkg/XenPvBlkDxe/BlockFront.c @@ -123,7 +123,7 @@ XenPvBlkWaitForBackendState ( Status =3D XENSTORE_STATUS_FAIL; break; } - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "XenPvBlk: waiting backend state %d, current: %d\n", ExpectedState, State)); XenBusIo->WaitForWatch (XenBusIo, Dev->StateWatchToken); @@ -171,12 +171,12 @@ XenPvBlockFrontInitialization ( if (Dev->MediaInfo.CdRom) { Status =3D XenBusIo->XsBackendRead (XenBusIo, XST_NIL, "params", (VOID= **)&Params); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "%a: Failed to read params (%d)\n", __FUNCTION_= _, Status)); + DEBUG ((DEBUG_ERROR, "%a: Failed to read params (%d)\n", __FUNCTION_= _, Status)); goto Error; } if (AsciiStrLen (Params) =3D=3D 0 || AsciiStrCmp (Params, "aio:") =3D= =3D 0) { FreePool (Params); - DEBUG ((EFI_D_INFO, "%a: Empty cdrom\n", __FUNCTION__)); + DEBUG ((DEBUG_INFO, "%a: Empty cdrom\n", __FUNCTION__)); goto Error; } FreePool (Params); @@ -184,7 +184,7 @@ XenPvBlockFrontInitialization ( =20 Status =3D XenBusReadUint64 (XenBusIo, "backend-id", FALSE, &Value); if (Status !=3D XENSTORE_STATUS_SUCCESS || Value > MAX_UINT16) { - DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to get backend-id (%d)\n", + DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to get backend-id (%d)\n", Status)); goto Error; } @@ -203,32 +203,32 @@ XenPvBlockFrontInitialization ( Again: Status =3D XenBusIo->XsTransactionStart (XenBusIo, &Transaction); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_WARN, "XenPvBlk: Failed to start transaction, %d\n", Sta= tus)); + DEBUG ((DEBUG_WARN, "XenPvBlk: Failed to start transaction, %d\n", Sta= tus)); goto Error; } =20 Status =3D XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName, "ring-r= ef", "%d", Dev->RingRef); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write ring-ref.\n")); + DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write ring-ref.\n")); goto AbortTransaction; } Status =3D XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName, "event-channel", "%d", Dev->EventChannel); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write event-channel.\n")); + DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write event-channel.\n")); goto AbortTransaction; } Status =3D XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName, "protocol", "%a", XEN_IO_PROTO_ABI_NATIVE); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write protocol.\n")); + DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write protocol.\n")); goto AbortTransaction; } =20 Status =3D XenBusIo->SetState (XenBusIo, &Transaction, XenbusStateConnec= ted); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to switch state.\n")); + DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to switch state.\n")); goto AbortTransaction; } =20 @@ -244,7 +244,7 @@ XenPvBlockFrontInitialization ( // Status =3D XenPvBlkWaitForBackendState (Dev, XenbusStateConnected, &Stat= e); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: backend for %a/%d not available, rc=3D%d state=3D%d= \n", XenBusIo->Type, XenBusIo->DeviceId, Status, State)); goto Error2; @@ -274,7 +274,7 @@ XenPvBlockFrontInitialization ( // // This is not supported by the driver. // - DEBUG ((EFI_D_ERROR, "XenPvBlk: Unsupported sector-size value %Lu, " + DEBUG ((DEBUG_ERROR, "XenPvBlk: Unsupported sector-size value %Lu, " "it must be a multiple of 512\n", Value)); goto Error2; } @@ -298,7 +298,7 @@ XenPvBlockFrontInitialization ( Dev->MediaInfo.FeatureFlushCache =3D FALSE; } =20 - DEBUG ((EFI_D_INFO, "XenPvBlk: New disk with %ld sectors of %d bytes\n", + DEBUG ((DEBUG_INFO, "XenPvBlk: New disk with %ld sectors of %d bytes\n", Dev->MediaInfo.Sectors, Dev->MediaInfo.SectorSize)); =20 *DevPtr =3D Dev; @@ -330,7 +330,7 @@ XenPvBlockFrontShutdown ( =20 Status =3D XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateClosing); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: error while changing state to Closing: %d\n", Status)); goto Close; @@ -338,7 +338,7 @@ XenPvBlockFrontShutdown ( =20 Status =3D XenPvBlkWaitForBackendState (Dev, XenbusStateClosing, NULL); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: error while waiting for closing backend state: %d\n= ", Status)); goto Close; @@ -346,7 +346,7 @@ XenPvBlockFrontShutdown ( =20 Status =3D XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateClosed); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: error while changing state to Closed: %d\n", Status)); goto Close; @@ -354,7 +354,7 @@ XenPvBlockFrontShutdown ( =20 Status =3D XenPvBlkWaitForBackendState (Dev, XenbusStateClosed, NULL); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: error while waiting for closed backend state: %d\n", Status)); goto Close; @@ -362,7 +362,7 @@ XenPvBlockFrontShutdown ( =20 Status =3D XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateInitialisin= g); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: error while changing state to initialising: %d\n", Status)); goto Close; @@ -371,7 +371,7 @@ XenPvBlockFrontShutdown ( while (TRUE) { Status =3D XenBusReadUint64 (XenBusIo, "state", TRUE, &Value); if (Status !=3D XENSTORE_STATUS_SUCCESS) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: error while waiting for new backend state: %d\n", Status)); goto Close; @@ -379,7 +379,7 @@ XenPvBlockFrontShutdown ( if (Value <=3D XenbusStateInitWait || Value >=3D XenbusStateClosed) { break; } - DEBUG ((EFI_D_INFO, + DEBUG ((DEBUG_INFO, "XenPvBlk: waiting backend state %d, current: %Lu\n", XenbusStateInitWait, Value)); XenBusIo->WaitForWatch (XenBusIo, Dev->StateWatchToken); @@ -473,7 +473,7 @@ XenPvBlockAsyncIo ( UINT32 ReturnCode; ReturnCode =3D XenBusIo->EventChannelNotify (XenBusIo, Dev->EventChann= el); if (ReturnCode !=3D 0) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: Unexpected return value from EventChannelNotify: = %d\n", ReturnCode)); } @@ -528,7 +528,7 @@ XenPvBlockPushOperation ( UINT32 ReturnCode; ReturnCode =3D XenBusIo->EventChannelNotify (XenBusIo, Dev->EventChann= el); if (ReturnCode !=3D 0) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: Unexpected return value from EventChannelNotify: = %d\n", ReturnCode)); } @@ -590,7 +590,7 @@ XenPvBlockAsyncIoPoll ( INT32 Index; =20 if (Status !=3D BLKIF_RSP_OKAY) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: " "%a error %d on %a at sector %Lx, num bytes %Lx\n", Response->operation =3D=3D BLKIF_OP_READ ? "read" : "w= rite", @@ -608,17 +608,17 @@ XenPvBlockAsyncIoPoll ( =20 case BLKIF_OP_WRITE_BARRIER: if (Status !=3D BLKIF_RSP_OKAY) { - DEBUG ((EFI_D_ERROR, "XenPvBlk: write barrier error %d\n", Statu= s)); + DEBUG ((DEBUG_ERROR, "XenPvBlk: write barrier error %d\n", Statu= s)); } break; case BLKIF_OP_FLUSH_DISKCACHE: if (Status !=3D BLKIF_RSP_OKAY) { - DEBUG ((EFI_D_ERROR, "XenPvBlk: flush error %d\n", Status)); + DEBUG ((DEBUG_ERROR, "XenPvBlk: flush error %d\n", Status)); } break; =20 default: - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlk: unrecognized block operation %d response (statu= s %d)\n", Response->operation, Status)); break; diff --git a/OvmfPkg/XenPvBlkDxe/BlockIo.c b/OvmfPkg/XenPvBlkDxe/BlockIo.c index b3a527e4e303..c013fc80f012 100644 --- a/OvmfPkg/XenPvBlkDxe/BlockIo.c +++ b/OvmfPkg/XenPvBlkDxe/BlockIo.c @@ -89,14 +89,14 @@ XenPvBlkDxeBlockIoReadWriteBlocks ( } =20 if (BufferSize % Media->BlockSize !=3D 0) { - DEBUG ((EFI_D_ERROR, "XenPvBlkDxe: Bad buffer size: 0x%Lx\n", + DEBUG ((DEBUG_ERROR, "XenPvBlkDxe: Bad buffer size: 0x%Lx\n", (UINT64)BufferSize)); return EFI_BAD_BUFFER_SIZE; } =20 if (Lba > Media->LastBlock || (BufferSize / Media->BlockSize) - 1 > Media->LastBlock - Lba) { - DEBUG ((EFI_D_ERROR, + DEBUG ((DEBUG_ERROR, "XenPvBlkDxe: %a with invalid LBA: 0x%Lx, size: 0x%Lx\n", IsWrite ? "Write" : "Read", Lba, (UINT64)BufferSize)); return EFI_INVALID_PARAMETER; @@ -150,7 +150,7 @@ XenPvBlkDxeBlockIoReadWriteBlocks ( Sector +=3D IoData.Size / 512; Status =3D XenPvBlockIo (&IoData, IsWrite); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "XenPvBlkDxe: Error during %a operation.\n", + DEBUG ((DEBUG_ERROR, "XenPvBlkDxe: Error during %a operation.\n", IsWrite ? "write" : "read")); return Status; } diff --git a/OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.c b/OvmfPkg/XenPvBlkDxe/XenPvB= lkDxe.c index 779a7f630c03..1440e1d23b66 100644 --- a/OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.c +++ b/OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.c @@ -304,7 +304,7 @@ XenPvBlkDxeDriverBindingStart ( NULL ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "XenPvBlk: install protocol fail: %r\n", Status)); + DEBUG ((DEBUG_ERROR, "XenPvBlk: install protocol fail: %r\n", Status)); goto UninitBlockFront; } =20 --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#58282): https://edk2.groups.io/g/devel/message/58282 Mute This Topic: https://groups.io/mt/73343553/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-