@samitouri / QOSamiQemu / commits / f61ff065d3

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 <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>

Luigi Leonardi committed Mar 30, 2026 at 14:43 UTC f61ff065d37018433c21600c212c19dcec2ac784
1 file changed +2 -2
backends/igvm.c
+2 -2
@@ -187,7 +187,7 @@ static void *qigvm_prepare_memory(QIgvm *ctx, uint64_t addr, uint64_t size,
187 error_setg(
188 errp,
189 "Processing of IGVM file failed: Could not prepare memory "
190 - "at address 0x%lX due to existing non-RAM region",
190 + "at address 0x%" PRIx64 " due to existing non-RAM region",
191 addr);
192 return NULL;
193 }
@@ -198,7 +198,7 @@ static void *qigvm_prepare_memory(QIgvm *ctx, uint64_t addr, uint64_t size,
198 error_setg(
199 errp,
200 "Processing of IGVM file failed: Could not prepare memory "
201 - "at address 0x%lX: region size exceeded",
201 + "at address 0x%" PRIx64 ": region size exceeded",
202 addr);
203 return NULL;
204 }