aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2025-06-02 19:31:01 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-06-03 22:42:46 +0200
commit6f1035fc65406c4e72e1dbd76e64924415edd616 (patch)
tree74ec495955cd3eba4e5c09c7eeb5993d8c89873e
parente7f926eb7f5b81c709313974b476ed181c9c76d5 (diff)
downloadqemu-6f1035fc65406c4e72e1dbd76e64924415edd616.zip
qemu-6f1035fc65406c4e72e1dbd76e64924415edd616.tar.gz
qemu-6f1035fc65406c4e72e1dbd76e64924415edd616.tar.bz2
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>
-rw-r--r--hw/i386/tdvf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/i386/tdvf.c b/hw/i386/tdvf.c
index bd993ea..645d9d1 100644
--- a/hw/i386/tdvf.c
+++ b/hw/i386/tdvf.c
@@ -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;
}