mirror of
https://github.com/qemu/qemu.git
synced 2026-04-05 21:46:25 +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(
|
error_setg(
|
||||||
errp,
|
errp,
|
||||||
"Processing of IGVM file failed: Could not prepare memory "
|
"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);
|
addr);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -198,7 +198,7 @@ static void *qigvm_prepare_memory(QIgvm *ctx, uint64_t addr, uint64_t size,
|
|||||||
error_setg(
|
error_setg(
|
||||||
errp,
|
errp,
|
||||||
"Processing of IGVM file failed: Could not prepare memory "
|
"Processing of IGVM file failed: Could not prepare memory "
|
||||||
"at address 0x%lX: region size exceeded",
|
"at address 0x%" PRIx64 ": region size exceeded",
|
||||||
addr);
|
addr);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user