audk/UefiCpuPkg/Application/Cpuid
Hao Wu d2ba6f41e2 UefiCpuPkg/Cpuid: Fix GCC build error
define PRINT_BIT_FIELD(Variable, FieldName) \
  Print (L"%5a%42a: %x\n", #Variable, #FieldName, \
  ##Variable.Bits.##FieldName);

The above definition in UefiCpuPkg/Application/Cpuid/Cpuid.c
will cause GCC build error.

Fix it with:

define PRINT_BIT_FIELD(Variable, FieldName) \
  Print (L"%5a%42a: %x\n", #Variable, #FieldName, \
  Variable.Bits.FieldName);

The '.' has its origin meaning as a member operator in the define
statement. Thus, the token-pasting operator '##' is not necessary here.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
2016-02-27 16:10:58 +08:00
..
Cpuid.c UefiCpuPkg/Cpuid: Fix GCC build error 2016-02-27 16:10:58 +08:00
Cpuid.inf UefiCpuPkg/Cpuid: Add UEFI CPUID application 2016-02-24 20:36:51 -08:00
Cpuid.uni UefiCpuPkg/Cpuid: Add UEFI CPUID application 2016-02-24 20:36:51 -08:00
CpuidExtra.uni UefiCpuPkg/Cpuid: Add UEFI CPUID application 2016-02-24 20:36:51 -08:00