From a85c5ed33fc203d5ab6f863cec00f6257251be76 Mon Sep 17 00:00:00 2001 From: Luigi Leonardi Date: Mon, 30 Mar 2026 14:43:07 +0200 Subject: [PATCH] backends/igvm: switch to PRIx64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the PRIx64 format macro instead of %lX for uint64_t values. This is to improve portability as %lX is not necessarily 64 bit long. Signed-off-by: Luigi Leonardi Reviewed-by: Ani Sinha Message-ID: <20260330-igvm_fixes-v1-1-03587a5a808b@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- backends/igvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/igvm.c b/backends/igvm.c index 3b5edf1521..50f0d6fb9a 100644 --- a/backends/igvm.c +++ b/backends/igvm.c @@ -187,7 +187,7 @@ static void *qigvm_prepare_memory(QIgvm *ctx, uint64_t addr, uint64_t size, error_setg( errp, "Processing of IGVM file failed: Could not prepare memory " - "at address 0x%lX due to existing non-RAM region", + "at address 0x%" PRIx64 " due to existing non-RAM region", addr); return NULL; } @@ -198,7 +198,7 @@ static void *qigvm_prepare_memory(QIgvm *ctx, uint64_t addr, uint64_t size, error_setg( errp, "Processing of IGVM file failed: Could not prepare memory " - "at address 0x%lX: region size exceeded", + "at address 0x%" PRIx64 ": region size exceeded", addr); return NULL; }