diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-02-26 16:43:02 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-02-27 16:15:41 +0800 |
commit | ed1ce80bfb03db35099a3f9b574e3869a13a489a (patch) | |
tree | 668a535c5fad378ca64bd42bb508f62c33049126 /BaseTools | |
parent | 6078c1d7e0954325cc95e9ef635da72204dcd29d (diff) | |
download | edk2-platforms-ed1ce80bfb03db35099a3f9b574e3869a13a489a.tar.xz |
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>
(cherry picked from commit d2ba6f41e2f8cbc8dffee8bddaebbbd6f3a3b9ab)
Diffstat (limited to 'BaseTools')
0 files changed, 0 insertions, 0 deletions