SecurityPkg Tcg2ConfigDxe: Refine debug message and comments

Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
This commit is contained in:
Star Zeng 2017-01-09 13:36:41 +08:00
parent 02263214ef
commit 133834858a
2 changed files with 5 additions and 5 deletions

View File

@ -137,7 +137,7 @@ InitializeTcg2VersionInfo (
} }
} else { } else {
// //
// EFI variable doesn't exist. // EFI variable doesn't exist or variable size is not expected.
// //
// //
@ -182,7 +182,7 @@ InitializeTcg2VersionInfo (
// //
// Get the PCD value again. // Get the PCD value again.
// If the PCD value is not equal to the value in variable, // If the PCD value is not equal to the value in variable,
// the PCD is not DynamicHii type and maps to the setup option. // the PCD is not DynamicHii type and does not map to the setup option.
// //
PcdTcg2PpiVersion = 0; PcdTcg2PpiVersion = 0;
CopyMem ( CopyMem (
@ -191,7 +191,7 @@ InitializeTcg2VersionInfo (
AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
); );
if (PcdTcg2PpiVersion != Tcg2Version.PpiVersion) { if (PcdTcg2PpiVersion != Tcg2Version.PpiVersion) {
DEBUG ((DEBUG_WARN, "WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and maps to TCG2_VERSION.PpiVersion\n")); DEBUG ((DEBUG_WARN, "WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and does not map to TCG2_VERSION.PpiVersion\n"));
DEBUG ((DEBUG_WARN, "WARNING: The TCG2 PPI version configuring from setup page will not work\n")); DEBUG ((DEBUG_WARN, "WARNING: The TCG2 PPI version configuring from setup page will not work\n"));
} }

View File

@ -489,7 +489,7 @@ Tcg2VersionInfoCallback (
// Get the PCD value after EFI_BROWSER_ACTION_SUBMITTED, // Get the PCD value after EFI_BROWSER_ACTION_SUBMITTED,
// the SetVariable to TCG2_VERSION_NAME should have been done. // the SetVariable to TCG2_VERSION_NAME should have been done.
// If the PCD value is not equal to the value set to variable, // If the PCD value is not equal to the value set to variable,
// the PCD is not DynamicHii type and maps to the setup option. // the PCD is not DynamicHii type and does not map to the setup option.
// //
PcdTcg2PpiVersion = 0; PcdTcg2PpiVersion = 0;
CopyMem ( CopyMem (
@ -501,7 +501,7 @@ Tcg2VersionInfoCallback (
CreatePopUp ( CreatePopUp (
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE, EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
&Key, &Key,
L"WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and maps to this option!", L"WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and does not map to this option!",
L"The version configuring by this setup option will not work!", L"The version configuring by this setup option will not work!",
NULL NULL
); );