summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/DxeHstiLib
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-11-16 19:21:31 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commit5f289f3ae3e9fbe6ff5b82d0e25e87bfb7899766 (patch)
tree61fc1ff6c5de5d9728fe902331a81369d8a45627 /MdePkg/Library/DxeHstiLib
parent87000d77082339be464d07855d9fc194c6b4e8a6 (diff)
downloadedk2-5f289f3ae3e9fbe6ff5b82d0e25e87bfb7899766.tar.gz
edk2-5f289f3ae3e9fbe6ff5b82d0e25e87bfb7899766.tar.bz2
edk2-5f289f3ae3e9fbe6ff5b82d0e25e87bfb7899766.zip
MdePkg: Change use of EFI_D_* to DEBUG_*
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739 Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdePkg/Library/DxeHstiLib')
-rw-r--r--MdePkg/Library/DxeHstiLib/HstiDxe.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/MdePkg/Library/DxeHstiLib/HstiDxe.c b/MdePkg/Library/DxeHstiLib/HstiDxe.c
index 4e1c67616b..262413266c 100644
--- a/MdePkg/Library/DxeHstiLib/HstiDxe.c
+++ b/MdePkg/Library/DxeHstiLib/HstiDxe.c
@@ -161,15 +161,15 @@ InternalHstiIsValidTable (
// basic check for header
//
if (HstiData == NULL) {
- DEBUG ((EFI_D_ERROR, "HstiData == NULL\n"));
+ DEBUG ((DEBUG_ERROR, "HstiData == NULL\n"));
return FALSE;
}
if (HstiSize < sizeof(ADAPTER_INFO_PLATFORM_SECURITY)) {
- DEBUG ((EFI_D_ERROR, "HstiSize < sizeof(ADAPTER_INFO_PLATFORM_SECURITY)\n"));
+ DEBUG ((DEBUG_ERROR, "HstiSize < sizeof(ADAPTER_INFO_PLATFORM_SECURITY)\n"));
return FALSE;
}
if (((HstiSize - sizeof(ADAPTER_INFO_PLATFORM_SECURITY)) / 3) < Hsti->SecurityFeaturesSize) {
- DEBUG ((EFI_D_ERROR, "((HstiSize - sizeof(ADAPTER_INFO_PLATFORM_SECURITY)) / 3) < SecurityFeaturesSize\n"));
+ DEBUG ((DEBUG_ERROR, "((HstiSize - sizeof(ADAPTER_INFO_PLATFORM_SECURITY)) / 3) < SecurityFeaturesSize\n"));
return FALSE;
}
@@ -177,7 +177,7 @@ InternalHstiIsValidTable (
// Check Version
//
if (Hsti->Version != PLATFORM_SECURITY_VERSION_VNEXTCS) {
- DEBUG ((EFI_D_ERROR, "Version != PLATFORM_SECURITY_VERSION_VNEXTCS\n"));
+ DEBUG ((DEBUG_ERROR, "Version != PLATFORM_SECURITY_VERSION_VNEXTCS\n"));
return FALSE;
}
@@ -186,8 +186,8 @@ InternalHstiIsValidTable (
//
if ((Hsti->Role < PLATFORM_SECURITY_ROLE_PLATFORM_REFERENCE) ||
(Hsti->Role > PLATFORM_SECURITY_ROLE_IMPLEMENTOR_ODM)) {
- DEBUG ((EFI_D_ERROR, "Role < PLATFORM_SECURITY_ROLE_PLATFORM_REFERENCE ||\n"));
- DEBUG ((EFI_D_ERROR, "Role > PLATFORM_SECURITY_ROLE_IMPLEMENTOR_ODM\n"));
+ DEBUG ((DEBUG_ERROR, "Role < PLATFORM_SECURITY_ROLE_PLATFORM_REFERENCE ||\n"));
+ DEBUG ((DEBUG_ERROR, "Role > PLATFORM_SECURITY_ROLE_IMPLEMENTOR_ODM\n"));
return FALSE;
}
@@ -200,7 +200,7 @@ InternalHstiIsValidTable (
}
}
if (Index == sizeof(Hsti->ImplementationID)/sizeof(Hsti->ImplementationID[0])) {
- DEBUG ((EFI_D_ERROR, "ImplementationID has no NUL CHAR\n"));
+ DEBUG ((DEBUG_ERROR, "ImplementationID has no NUL CHAR\n"));
return FALSE;
}
@@ -211,11 +211,11 @@ InternalHstiIsValidTable (
// basic check for ErrorString
//
if (ErrorStringSize == 0) {
- DEBUG ((EFI_D_ERROR, "ErrorStringSize == 0\n"));
+ DEBUG ((DEBUG_ERROR, "ErrorStringSize == 0\n"));
return FALSE;
}
if ((ErrorStringSize & BIT0) != 0) {
- DEBUG ((EFI_D_ERROR, "(ErrorStringSize & BIT0) != 0\n"));
+ DEBUG ((DEBUG_ERROR, "(ErrorStringSize & BIT0) != 0\n"));
return FALSE;
}
@@ -232,11 +232,11 @@ InternalHstiIsValidTable (
// check the length of ErrorString
//
if (ErrorChar != 0) {
- DEBUG ((EFI_D_ERROR, "ErrorString has no NUL CHAR\n"));
+ DEBUG ((DEBUG_ERROR, "ErrorString has no NUL CHAR\n"));
return FALSE;
}
if (ErrorStringLength == (ErrorStringSize/2)) {
- DEBUG ((EFI_D_ERROR, "ErrorString Length incorrect\n"));
+ DEBUG ((DEBUG_ERROR, "ErrorString Length incorrect\n"));
return FALSE;
}