Revision: 18816
          http://sourceforge.net/p/edk2/code/18816
Author:   vanjeff
Date:     2015-11-16 08:15:24 +0000 (Mon, 16 Nov 2015)
Log Message:
-----------
MdeModulePkg SmbiosMeasurementDxe: Use EFI_D_VERBOSE for internal dump functions

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.

(Sync patch r18693 from main trunk.)

Cc: Jiewen Yao <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/18693

Modified Paths:
--------------
    
branches/UDK2015/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c

Modified: 
branches/UDK2015/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c
===================================================================
--- 
branches/UDK2015/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c
 2015-11-16 08:14:30 UTC (rev 18815)
+++ 
branches/UDK2015/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c
 2015-11-16 08:15:24 UTC (rev 18816)
@@ -125,7 +125,7 @@
 {
   UINTN  Index;
   for (Index = 0; Index < Size; Index++) {
-    DEBUG ((EFI_D_INFO, "%02x", (UINTN)Data[Index]));
+    DEBUG ((EFI_D_VERBOSE, "%02x", (UINTN)Data[Index]));
   }
 }
 
@@ -152,15 +152,15 @@
   Count = Size / COLUME_SIZE;
   Left  = Size % COLUME_SIZE;
   for (Index = 0; Index < Count; Index++) {
-    DEBUG ((EFI_D_INFO, "%04x: ", Index * COLUME_SIZE));
+    DEBUG ((EFI_D_VERBOSE, "%04x: ", Index * COLUME_SIZE));
     InternalDumpData (Data + Index * COLUME_SIZE, COLUME_SIZE);
-    DEBUG ((EFI_D_INFO, "\n"));
+    DEBUG ((EFI_D_VERBOSE, "\n"));
   }
 
   if (Left != 0) {
-    DEBUG ((EFI_D_INFO, "%04x: ", Index * COLUME_SIZE));
+    DEBUG ((EFI_D_VERBOSE, "%04x: ", Index * COLUME_SIZE));
     InternalDumpData (Data + Index * COLUME_SIZE, Left);
-    DEBUG ((EFI_D_INFO, "\n"));
+    DEBUG ((EFI_D_VERBOSE, "\n"));
   }
 }
 
@@ -271,7 +271,7 @@
   UINTN                 StringLen;
 
   DEBUG ((EFI_D_INFO, "Smbios Table (Type - %d):\n", ((SMBIOS_STRUCTURE 
*)TableEntry)->Type));
-  InternalDumpHex (TableEntry, TableEntrySize);
+  DEBUG_CODE (InternalDumpHex (TableEntry, TableEntrySize););
 
   FilterStruct = GetFilterStructByType (((SMBIOS_STRUCTURE 
*)TableEntry)->Type);
   if (FilterStruct != NULL) {
@@ -297,7 +297,7 @@
   }
 
   DEBUG ((EFI_D_INFO, "Filter Smbios Table (Type - %d):\n", ((SMBIOS_STRUCTURE 
*)TableEntry)->Type));
-  InternalDumpHex (TableEntry, TableEntrySize);
+  DEBUG_CODE (InternalDumpHex (TableEntry, TableEntrySize););
 }
 
 /**
@@ -531,7 +531,7 @@
   if (SmbiosTableAddress != NULL) {
     DEBUG ((DEBUG_INFO, "The Smbios Table starts at: 0x%x\n", 
SmbiosTableAddress));
     DEBUG ((DEBUG_INFO, "The Smbios Table size: 0x%x\n", TableLength));
-    InternalDumpHex ((UINT8 *)(UINTN)SmbiosTableAddress, TableLength);
+    DEBUG_CODE (InternalDumpHex ((UINT8 *)(UINTN)SmbiosTableAddress, 
TableLength););
 
     TableAddress = AllocateCopyPool ((UINTN)TableLength, (VOID 
*)(UINTN)SmbiosTableAddress);
     if (TableAddress == NULL) {
@@ -542,7 +542,7 @@
 
     DEBUG ((DEBUG_INFO, "The final Smbios Table starts at: 0x%x\n", 
TableAddress));
     DEBUG ((DEBUG_INFO, "The final Smbios Table size: 0x%x\n", TableLength));
-    InternalDumpHex (TableAddress, TableLength);
+    DEBUG_CODE (InternalDumpHex (TableAddress, TableLength););
 
     HandoffTables.NumberOfTables = 1;
     if (Smbios3Table != NULL) {


------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to