]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
igvm: switch to PRIx64
authorLuigi Leonardi <leonardi@redhat.com>
Mon, 30 Mar 2026 12:43:07 +0000 (14:43 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 31 Mar 2026 06:53:47 +0000 (08:53 +0200)
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 <leonardi@redhat.com>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Message-ID: <20260330-igvm_fixes-v1-1-03587a5a808b@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
backends/igvm.c

index 3b5edf15213c845132d0d4c05144a18992f1816e..50f0d6fb9a7bacddce91f095b6e2710ecbc79c6f 100644 (file)
@@ -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;
         }