mirror of
https://github.com/qemu/qemu.git
synced 2026-04-05 21:50:33 +00:00
backends/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: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
committed by
Philippe Mathieu-Daudé
parent
07ec1a7235
commit
a85c5ed33f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user