From 447cb9135c6ded337b4f990c52788d91e2a20cfa Mon Sep 17 00:00:00 2001 From: Elvin Li Date: Tue, 3 Mar 2015 02:38:26 +0000 Subject: ShellPkg: Fixed EBC build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Shumin Qiu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16987 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView') diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c index ecc4e14..676aede 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); -- cgit v1.1