mirror of
https://github.com/qemu/qemu.git
synced 2025-08-16 17:37:19 +00:00
i386/tdvf: Fix build on 32-bit host
Use PRI formats where required. Cc: Isaku Yamahata <isaku.yamahata@intel.com> Signed-off-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/r/20250602173101.1052983-3-clg@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:

committed by
Paolo Bonzini

parent
e7f926eb7f
commit
6f1035fc65
@ -101,16 +101,16 @@ static int tdvf_parse_and_check_section_entry(const TdvfSectionEntry *src,
|
||||
|
||||
/* sanity check */
|
||||
if (entry->size < entry->data_len) {
|
||||
error_report("Broken metadata RawDataSize 0x%x MemoryDataSize 0x%lx",
|
||||
error_report("Broken metadata RawDataSize 0x%x MemoryDataSize 0x%"PRIx64,
|
||||
entry->data_len, entry->size);
|
||||
return -1;
|
||||
}
|
||||
if (!QEMU_IS_ALIGNED(entry->address, TDVF_ALIGNMENT)) {
|
||||
error_report("MemoryAddress 0x%lx not page aligned", entry->address);
|
||||
error_report("MemoryAddress 0x%"PRIx64" not page aligned", entry->address);
|
||||
return -1;
|
||||
}
|
||||
if (!QEMU_IS_ALIGNED(entry->size, TDVF_ALIGNMENT)) {
|
||||
error_report("MemoryDataSize 0x%lx not page aligned", entry->size);
|
||||
error_report("MemoryDataSize 0x%"PRIx64" not page aligned", entry->size);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user