From: Luigi Leonardi Date: Mon, 30 Mar 2026 12:43:07 +0000 (+0200) Subject: igvm: switch to PRIx64 X-Git-Tag: v11.0.0-rc2~1^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f61ff065d37018433c21600c212c19dcec2ac784;p=thirdparty%2Fqemu.git igvm: switch to PRIx64 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: Gerd Hoffmann --- diff --git a/backends/igvm.c b/backends/igvm.c index 3b5edf15213..50f0d6fb9a7 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; }