From: Hao Wu Date: Tue, 11 Oct 2016 03:03:24 +0000 (+0800) Subject: BaseTools/GenFv: Fix parameter format mismatch in scanf functions X-Git-Tag: edk2-stable201903~5335 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=488ace56a6b135f79b56e3905d5c989638a0ec90 BaseTools/GenFv: Fix parameter format mismatch in scanf functions According to MSDN https://msdn.microsoft.com/en-us/library/6ttkkkhh.aspx & https://msdn.microsoft.com/en-us/library/xdb9w69d.aspx Format specification '%llx' for scanf expects type 'long long *', modify the type of the relating variable to 'long long' to keep them matched. Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Liming Gao --- diff --git a/BaseTools/Source/C/GenFv/GenFvInternalLib.c b/BaseTools/Source/C/GenFv/GenFvInternalLib.c index f7e3ba507c..7e8b0ed2d8 100644 --- a/BaseTools/Source/C/GenFv/GenFvInternalLib.c +++ b/BaseTools/Source/C/GenFv/GenFvInternalLib.c @@ -751,7 +751,7 @@ Returns: EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; EFI_TE_IMAGE_HEADER *TEImageHeader; EFI_IMAGE_SECTION_HEADER *SectionHeader; - unsigned long long TempLongAddress; + long long TempLongAddress; UINT32 TextVirtualAddress; UINT32 DataVirtualAddress; EFI_PHYSICAL_ADDRESS LinkTimeBaseAddress;