diff --git a/PerformancePkg/Dp_App/Dp.c b/PerformancePkg/Dp_App/Dp.c index b8e07c5cca..be4d40301a 100644 --- a/PerformancePkg/Dp_App/Dp.c +++ b/PerformancePkg/Dp_App/Dp.c @@ -287,8 +287,8 @@ InitializeDp ( // Boolean Options // VerboseMode = ShellCommandLineGetFlag (ParamPackage, StringDpOptionLv); - SummaryMode = ShellCommandLineGetFlag (ParamPackage, StringDpOptionUs) || - ShellCommandLineGetFlag (ParamPackage, StringDpOptionLs); + SummaryMode = (BOOLEAN) (ShellCommandLineGetFlag (ParamPackage, StringDpOptionUs) || + ShellCommandLineGetFlag (ParamPackage, StringDpOptionLs)); AllMode = ShellCommandLineGetFlag (ParamPackage, StringDpOptionUa); RawMode = ShellCommandLineGetFlag (ParamPackage, StringDpOptionUr); #if PROFILING_IMPLEMENTED @@ -353,7 +353,7 @@ InitializeDp ( (! RawMode) ) { StringPtr = HiiGetString (gHiiHandle, - TimerInfo.CountUp ? STRING_TOKEN (STR_DP_UP) : STRING_TOKEN (STR_DP_DOWN), + (EFI_STRING_ID) (TimerInfo.CountUp ? STRING_TOKEN (STR_DP_UP) : STRING_TOKEN (STR_DP_DOWN)), NULL); ASSERT (StringPtr != NULL); PrintToken (STRING_TOKEN (STR_DP_TIMER_PROPERTIES), // Print Timer count range and direction diff --git a/PerformancePkg/Dp_App/DpInternal.h b/PerformancePkg/Dp_App/DpInternal.h index f382d425b2..6562230209 100644 --- a/PerformancePkg/Dp_App/DpInternal.h +++ b/PerformancePkg/Dp_App/DpInternal.h @@ -26,7 +26,7 @@ extern CHAR16 mGaugeString[DXE_PERFORMANCE_STRING_SIZE]; extern CHAR16 mUnicodeToken[PERF_TOKEN_LENGTH + 1]; extern UINT64 mInterestThreshold; -extern PERF_SUMMARY_DATA SummaryData;; ///< Create the SummaryData structure and init. to ZERO. +extern PERF_SUMMARY_DATA SummaryData; ///< Create the SummaryData structure and init. to ZERO. /// Timer Specific Information. extern TIMER_INFO TimerInfo;