OvmfPkg: fix conversion specifiers in DEBUG format strings
Cc: Scott Duplichan <scott@notabs.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Reported-by: Scott Duplichan <scott@notabs.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Build-tested-by: Scott Duplichan <scott@notabs.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18095 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -143,7 +143,8 @@ LoadLinuxInitializeKernelSetup (
|
||||
//
|
||||
ZeroMem (KernelSetup, 0x1f1);
|
||||
ZeroMem (((UINT8 *)KernelSetup) + SetupEnd, 4096 - SetupEnd);
|
||||
DEBUG ((EFI_D_INFO, "Cleared kernel setup 0-0x1f1, 0x%x-0x1000\n", SetupEnd));
|
||||
DEBUG ((EFI_D_INFO, "Cleared kernel setup 0-0x1f1, 0x%Lx-0x1000\n",
|
||||
(UINT64)SetupEnd));
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
@@ -369,7 +369,7 @@ RestoreAllLockBoxInPlace (
|
||||
Buffer = (VOID *)(UINTN) Header->OrigAddress;
|
||||
CopyMem (Buffer, (VOID*)(UINTN)Header->CopyAddress, Header->Size);
|
||||
DEBUG ((DEBUG_VERBOSE, "%a: Guid=%g Buffer=%p\n", __FUNCTION__,
|
||||
Header->Guid, Buffer));
|
||||
&Header->Guid, Buffer));
|
||||
}
|
||||
}
|
||||
return RETURN_SUCCESS;
|
||||
|
@@ -255,8 +255,8 @@ ReadNvVarsFile (
|
||||
|
||||
DEBUG ((
|
||||
EFI_D_INFO,
|
||||
"FsAccess.c: Read %d bytes from NV Variables file\n",
|
||||
FileSize
|
||||
"FsAccess.c: Read %Lu bytes from NV Variables file\n",
|
||||
(UINT64)FileSize
|
||||
));
|
||||
|
||||
Status = SerializeVariablesNewInstanceFromBuffer (
|
||||
@@ -369,8 +369,8 @@ LoadNvVarsFromFs (
|
||||
|
||||
DEBUG ((
|
||||
EFI_D_INFO,
|
||||
"FsAccess.c: Read NV Variables file (size=%d)\n",
|
||||
Size
|
||||
"FsAccess.c: Read NV Variables file (size=%Lu)\n",
|
||||
(UINT64)Size
|
||||
));
|
||||
|
||||
return Status;
|
||||
|
@@ -218,9 +218,9 @@ IterateVariablesInBuffer (
|
||||
if (TotalSizeUsed != MaxSize) {
|
||||
DEBUG ((
|
||||
EFI_D_ERROR,
|
||||
"Deserialize variables error: TotalSizeUsed(%d) != MaxSize(%d)\n",
|
||||
TotalSizeUsed,
|
||||
MaxSize
|
||||
"Deserialize variables error: TotalSizeUsed(%Lu) != MaxSize(%Lu)\n",
|
||||
(UINT64)TotalSizeUsed,
|
||||
(UINT64)MaxSize
|
||||
));
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
@@ -35,8 +35,8 @@ XenHypercallHvmGetParam (
|
||||
HVMOP_get_param, (INTN) &Parameter);
|
||||
if (Error != 0) {
|
||||
DEBUG ((EFI_D_ERROR,
|
||||
"XenHypercall: Error %d trying to get HVM parameter %d\n",
|
||||
Error, Index));
|
||||
"XenHypercall: Error %Ld trying to get HVM parameter %d\n",
|
||||
(INT64)Error, Index));
|
||||
return 0;
|
||||
}
|
||||
return Parameter.value;
|
||||
|
Reference in New Issue
Block a user