X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FApplication%2FSmiHandlerProfileInfo%2FSmiHandlerProfileInfo.c;h=96e9977aad0ce8322c02f59d3566c07227f3f49b;hp=338671374c727a1d4970b5a1f1571fa4a41f5901;hb=f248539538efd522a71c1e9bf63c622e02d443f4;hpb=8ced192d5cf1e8ccd56fa5daed2c2ca28fb04cff diff --git a/MdeModulePkg/Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.c b/MdeModulePkg/Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.c index 338671374c..96e9977aad 100644 --- a/MdeModulePkg/Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.c +++ b/MdeModulePkg/Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.c @@ -348,9 +348,9 @@ DumpSmmLoadedImage( if (ImageStruct->Header.Signature == SMM_CORE_IMAGE_DATABASE_SIGNATURE) { NameString = GetDriverNameString (ImageStruct); Print(L" ImageBase, ImageStruct->ImageSize); + Print(L" Base=\"0x%lx\" Size=\"0x%lx\"", ImageStruct->ImageBase, ImageStruct->ImageSize); if (ImageStruct->EntryPoint != 0) { - Print(L" EntryPoint=\"0x%x\"", ImageStruct->EntryPoint); + Print(L" EntryPoint=\"0x%lx\"", ImageStruct->EntryPoint); } Print(L" FvFile=\"%g\"", &ImageStruct->FileGuid); Print(L" RefId=\"0x%x\"", ImageStruct->ImageRef); @@ -540,7 +540,7 @@ DumpSmiChildContext ( CHAR16 *Str; if (CompareGuid (HandlerType, &gEfiSmmSwDispatch2ProtocolGuid)) { - Print(L" SwSmi=\"0x%x\"", ((EFI_SMM_SW_REGISTER_CONTEXT *)Context)->SwSmiInputValue); + Print(L" SwSmi=\"0x%lx\"", ((SMI_HANDLER_PROFILE_SW_REGISTER_CONTEXT *)Context)->SwSmiInputValue); } else if (CompareGuid (HandlerType, &gEfiSmmSxDispatch2ProtocolGuid)) { Print(L" SxType=\"%a\"", SxTypeToString(((EFI_SMM_SX_REGISTER_CONTEXT *)Context)->Type)); Print(L" SxPhase=\"%a\"", SxPhaseToString(((EFI_SMM_SX_REGISTER_CONTEXT *)Context)->Phase)); @@ -609,14 +609,14 @@ DumpSmiHandler( Print(L" %a\n", (UINT8 *)ImageStruct + ImageStruct->PdbStringOffset); } Print(L" \n"); - Print(L" \n", SmiHandlerStruct->Handler); + Print(L" \n", SmiHandlerStruct->Handler); if (ImageStruct != NULL) { - Print(L" 0x%x\n", SmiHandlerStruct->Handler - ImageStruct->ImageBase); + Print(L" 0x%x\n", (UINTN) (SmiHandlerStruct->Handler - ImageStruct->ImageBase)); } Print(L" \n", SmiHandlerStruct->Handler); - Print(L" \n", SmiHandlerStruct->CallerAddr); + Print(L" \n", SmiHandlerStruct->CallerAddr); if (ImageStruct != NULL) { - Print(L" 0x%x\n", SmiHandlerStruct->CallerAddr - ImageStruct->ImageBase); + Print(L" 0x%x\n", (UINTN) (SmiHandlerStruct->CallerAddr - ImageStruct->ImageBase)); } Print(L" \n", SmiHandlerStruct->Handler); SmiHandlerStruct = (VOID *)((UINTN)SmiHandlerStruct + SmiHandlerStruct->Length);