summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorElvin Li <elvin.li@intel.com>2015-03-03 02:38:26 +0000
committerli-elvin <li-elvin@Edk2>2015-03-03 02:38:26 +0000
commit447cb9135c6ded337b4f990c52788d91e2a20cfa (patch)
treef37a6cc01ba72614cc6c7abb9bf62961d761e168 /ShellPkg
parentd301991cbc4b3e2e9ecbd94b56f46bf9dd657658 (diff)
downloadedk2-447cb9135c6ded337b4f990c52788d91e2a20cfa.tar.gz
edk2-447cb9135c6ded337b4f990c52788d91e2a20cfa.tar.bz2
edk2-447cb9135c6ded337b4f990c52788d91e2a20cfa.zip
ShellPkg: Fixed EBC build error.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li <elvin.li@intel.com> Reviewed-by: Shumin Qiu <shumin.qiu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16987 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
index ecc4e142ac..676aedef6e 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
@@ -363,7 +363,7 @@ SmbiosPrintStructure (
PRINT_STRUCT_VALUE (Struct, Type4, ThreadCount);
DisplayProcessorCharacteristics (Struct->Type4->ProcessorCharacteristics, Option);
}
- if (AE_SMBIOS_VERSION (0x3, 0x0) && (Struct->Hdr->Length > 0x2A)) {
+ if ((SmbiosMajorVersion >= 0x3) && (Struct->Hdr->Length > 0x2A)) {
PRINT_STRUCT_VALUE (Struct, Type4, CoreCount2);
PRINT_STRUCT_VALUE (Struct, Type4, EnabledCoreCount2);
PRINT_STRUCT_VALUE (Struct, Type4, ThreadCount2);