From: "Cédric Le Goater" <clg@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Marcelo Tosatti" <mtosatti@redhat.com>,
"Cédric Le Goater" <clg@redhat.com>,
"Isaku Yamahata" <isaku.yamahata@intel.com>
Subject: [PATCH 2/2] i386/tdvf: Fix build on 32-bit host
Date: Mon, 2 Jun 2025 19:31:01 +0200 [thread overview]
Message-ID: <20250602173101.1052983-3-clg@redhat.com> (raw)
In-Reply-To: <20250602173101.1052983-1-clg@redhat.com>
Use PRI formats where required.
Cc: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
hw/i386/tdvf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/i386/tdvf.c b/hw/i386/tdvf.c
index bd993ea2f07a..645d9d1294b4 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;
}
--
2.49.0
next prev parent reply other threads:[~2025-06-02 17:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-02 17:30 [PATCH 0/2] i386/tdx: Fix build on 32-bit host Cédric Le Goater
2025-06-02 17:31 ` [PATCH 1/2] " Cédric Le Goater
2025-06-03 3:04 ` Xiaoyao Li
2025-06-03 11:26 ` Philippe Mathieu-Daudé
2025-06-03 14:53 ` Paolo Bonzini
2025-06-06 8:49 ` Xiaoyao Li
2025-06-06 9:19 ` Philippe Mathieu-Daudé
2025-06-06 9:28 ` Xiaoyao Li
2025-06-06 9:38 ` Philippe Mathieu-Daudé
2025-06-02 17:31 ` Cédric Le Goater [this message]
2025-06-03 14:52 ` [PATCH 0/2] " Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250602173101.1052983-3-clg@redhat.com \
--to=clg@redhat.com \
--cc=eduardo@habkost.net \
--cc=isaku.yamahata@intel.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).