Use EFI_D_VERBOSE instead of EFI_D_INFO in InternalDumpData() and InternalDumpHex().
And also add DEBUG_CODE wrapper to InternalDumpHex() call.
It is to avoid the bother from the internal verbose debug information.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18693
6f19259b-4bc3-4df7-8a09-
765794883524
{\r
UINTN Index;\r
for (Index = 0; Index < Size; Index++) {\r
{\r
UINTN Index;\r
for (Index = 0; Index < Size; Index++) {\r
- DEBUG ((EFI_D_INFO, "%02x", (UINTN)Data[Index]));\r
+ DEBUG ((EFI_D_VERBOSE, "%02x", (UINTN)Data[Index]));\r
Count = Size / COLUME_SIZE;\r
Left = Size % COLUME_SIZE;\r
for (Index = 0; Index < Count; Index++) {\r
Count = Size / COLUME_SIZE;\r
Left = Size % COLUME_SIZE;\r
for (Index = 0; Index < Count; Index++) {\r
- DEBUG ((EFI_D_INFO, "%04x: ", Index * COLUME_SIZE));\r
+ DEBUG ((EFI_D_VERBOSE, "%04x: ", Index * COLUME_SIZE));\r
InternalDumpData (Data + Index * COLUME_SIZE, COLUME_SIZE);\r
InternalDumpData (Data + Index * COLUME_SIZE, COLUME_SIZE);\r
- DEBUG ((EFI_D_INFO, "\n"));\r
+ DEBUG ((EFI_D_VERBOSE, "\n"));\r
}\r
\r
if (Left != 0) {\r
}\r
\r
if (Left != 0) {\r
- DEBUG ((EFI_D_INFO, "%04x: ", Index * COLUME_SIZE));\r
+ DEBUG ((EFI_D_VERBOSE, "%04x: ", Index * COLUME_SIZE));\r
InternalDumpData (Data + Index * COLUME_SIZE, Left);\r
InternalDumpData (Data + Index * COLUME_SIZE, Left);\r
- DEBUG ((EFI_D_INFO, "\n"));\r
+ DEBUG ((EFI_D_VERBOSE, "\n"));\r
UINTN StringLen;\r
\r
DEBUG ((EFI_D_INFO, "Smbios Table (Type - %d):\n", ((SMBIOS_STRUCTURE *)TableEntry)->Type));\r
UINTN StringLen;\r
\r
DEBUG ((EFI_D_INFO, "Smbios Table (Type - %d):\n", ((SMBIOS_STRUCTURE *)TableEntry)->Type));\r
- InternalDumpHex (TableEntry, TableEntrySize);\r
+ DEBUG_CODE (InternalDumpHex (TableEntry, TableEntrySize););\r
\r
FilterStruct = GetFilterStructByType (((SMBIOS_STRUCTURE *)TableEntry)->Type);\r
if (FilterStruct != NULL) {\r
\r
FilterStruct = GetFilterStructByType (((SMBIOS_STRUCTURE *)TableEntry)->Type);\r
if (FilterStruct != NULL) {\r
}\r
\r
DEBUG ((EFI_D_INFO, "Filter Smbios Table (Type - %d):\n", ((SMBIOS_STRUCTURE *)TableEntry)->Type));\r
}\r
\r
DEBUG ((EFI_D_INFO, "Filter Smbios Table (Type - %d):\n", ((SMBIOS_STRUCTURE *)TableEntry)->Type));\r
- InternalDumpHex (TableEntry, TableEntrySize);\r
+ DEBUG_CODE (InternalDumpHex (TableEntry, TableEntrySize););\r
if (SmbiosTableAddress != NULL) {\r
DEBUG ((DEBUG_INFO, "The Smbios Table starts at: 0x%x\n", SmbiosTableAddress));\r
DEBUG ((DEBUG_INFO, "The Smbios Table size: 0x%x\n", TableLength));\r
if (SmbiosTableAddress != NULL) {\r
DEBUG ((DEBUG_INFO, "The Smbios Table starts at: 0x%x\n", SmbiosTableAddress));\r
DEBUG ((DEBUG_INFO, "The Smbios Table size: 0x%x\n", TableLength));\r
- InternalDumpHex ((UINT8 *)(UINTN)SmbiosTableAddress, TableLength);\r
+ DEBUG_CODE (InternalDumpHex ((UINT8 *)(UINTN)SmbiosTableAddress, TableLength););\r
\r
TableAddress = AllocateCopyPool ((UINTN)TableLength, (VOID *)(UINTN)SmbiosTableAddress);\r
if (TableAddress == NULL) {\r
\r
TableAddress = AllocateCopyPool ((UINTN)TableLength, (VOID *)(UINTN)SmbiosTableAddress);\r
if (TableAddress == NULL) {\r
\r
DEBUG ((DEBUG_INFO, "The final Smbios Table starts at: 0x%x\n", TableAddress));\r
DEBUG ((DEBUG_INFO, "The final Smbios Table size: 0x%x\n", TableLength));\r
\r
DEBUG ((DEBUG_INFO, "The final Smbios Table starts at: 0x%x\n", TableAddress));\r
DEBUG ((DEBUG_INFO, "The final Smbios Table size: 0x%x\n", TableLength));\r
- InternalDumpHex (TableAddress, TableLength);\r
+ DEBUG_CODE (InternalDumpHex (TableAddress, TableLength););\r
\r
HandoffTables.NumberOfTables = 1;\r
if (Smbios3Table != NULL) {\r
\r
HandoffTables.NumberOfTables = 1;\r
if (Smbios3Table != NULL) {\r