57 PM
> To: devel@edk2.groups.io
> Cc: Zeng, Star ; Dong, Eric ; Ni,
> Ray ; Laszlo Ersek
> Subject: [edk2-devel] [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Match
> data type and format specifier
>
> Match data type and format specifier for printing.
> 1. Type cast ProcessorNu
00 PM
> To: devel@edk2.groups.io
> Cc: Zeng, Star ; Dong, Eric ; Ni,
> Ray ; Laszlo Ersek
> Subject: [edk2-devel] [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Match
> data type and format specifier
>
> Match data type and format specifier for printing.
> 1. Type cast ProcessorNu
Match data type and format specifier for printing.
1. Type cast ProcessorNumber and FeatureIndex to UINT32
as %d only expects a UINT32.
2. Use %08x instead of %08lx for CacheControl to print Index
as it is UINT32 type.
3. Use %016lx instead of %08lx for MemoryMapped to print
(Index | LShiftU6
Match data type and format specifier for printing.
1. Type cast ProcessorNumber and FeatureIndex to UINT32
as %d only expects a UINT32.
2. Use %08x instead of %08lx for CacheControl to print Index
as it is UINT32 type.
3. Use %016lx instead of %08lx for MemoryMapped to print
(Index | LShiftU6