]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg SmbiosMeasurementDxe: Use EFI_D_VERBOSE for internal dump functions
authorStar Zeng <star.zeng@intel.com>
Thu, 29 Oct 2015 01:13:07 +0000 (01:13 +0000)
committerlzeng14 <lzeng14@Edk2>
Thu, 29 Oct 2015 01:13:07 +0000 (01:13 +0000)
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

MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c

index e82b028116b4eb76987a374465c58eedda0ee1bc..95a3aebefd74922e8d12bd9e63c7ed3e0e6ab11c 100644 (file)
@@ -125,7 +125,7 @@ InternalDumpData (
 {\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
   }\r
 }\r
 \r
@@ -152,15 +152,15 @@ InternalDumpHex (
   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
-    DEBUG ((EFI_D_INFO, "\n"));\r
+    DEBUG ((EFI_D_VERBOSE, "\n"));\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
-    DEBUG ((EFI_D_INFO, "\n"));\r
+    DEBUG ((EFI_D_VERBOSE, "\n"));\r
   }\r
 }\r
 \r
@@ -271,7 +271,7 @@ FilterSmbiosEntry (
   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
@@ -297,7 +297,7 @@ FilterSmbiosEntry (
   }\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
 }\r
 \r
 /**\r
@@ -531,7 +531,7 @@ MeasureSmbiosTable (
   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
@@ -542,7 +542,7 @@ MeasureSmbiosTable (
 \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