Re: [edk2-devel] [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Match data type and format specifier

2020-02-03 Thread Zeng, Star
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

Re: [edk2-devel] [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Match data type and format specifier

2020-02-03 Thread Zeng, Star
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

[edk2-devel] [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Match data type and format specifier

2020-02-03 Thread Zeng, Star
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 |

[edk2-devel] [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Match data type and format specifier

2020-02-03 Thread Zeng, Star
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 |