]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PerformancePkg/Dp_App/Dp.c
Update DP to get Image name with the following methods orderly.
[mirror_edk2.git] / PerformancePkg / Dp_App / Dp.c
index 755f68833accf2e08b7dd0c0fb2223e0207d5dc0..094919c695de4e4fcd4ea2fbd633539cb7c0c94c 100644 (file)
@@ -46,8 +46,8 @@
 EFI_HII_HANDLE   gHiiHandle;\r
 SHELL_PARAM_ITEM *DpParamList       = NULL;\r
 CHAR16           *mPrintTokenBuffer = NULL;\r
-CHAR16           mGaugeString[DXE_PERFORMANCE_STRING_SIZE];\r
-CHAR16           mUnicodeToken[PERF_TOKEN_LENGTH + 1];\r
+CHAR16           mGaugeString[DP_GAUGE_STRING_LENGTH + 1];\r
+CHAR16           mUnicodeToken[DXE_PERFORMANCE_STRING_SIZE];\r
 UINT64           mInterestThreshold;\r
 \r
 PERF_SUMMARY_DATA SummaryData = { 0 };    ///< Create the SummaryData structure and init. to ZERO.\r
@@ -85,22 +85,6 @@ PARAM_ITEM_LIST  ParamList[] = {
 \r
 ///@}\r
 \r
-/**\r
-  Wrap original FreePool to check NULL pointer first.\r
-\r
-  @param[in]    Buffer      The pointer to the buffer to free.\r
-\r
-**/\r
-VOID\r
-SafeFreePool (\r
-  IN VOID   *Buffer\r
-  )\r
-{\r
-  if (Buffer != NULL) {\r
-    FreePool (Buffer);\r
-  }\r
-}\r
-\r
 /**\r
   Transfer the param list value and get the command line parse.\r
 \r