igvm: spit out region size on error
PATCH 1/1 igvm: spit out region size on error
This change makes the error message provide more details on the values that caused the error. Cosmetic, no functional change. Only useful for debugging purpose.
Signed-off-by Ani Sinha <[email protected]>
--- backends/igvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
backends/igvm.c +2 -2
@@ -207,8 +207,8 @@ 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%" PRIx64": region size exceeded" , - addr); +"at address 0x%" PRIx64": region size 0x%" PRIx64" exceeded" , + addr, size);return NULL ; }return qemu_map_ram_ptr (mrs.mr->ram_block, mrs.offset_within_region);
Signature · 1 line
2.54.0
Quoted 9 lines · Ani Sinha
This change makes the error message provide more details on the values that caused the error. Cosmetic, no functional change. Only useful for debugging purpose.
Signed-off-by Ani Sinha <[email protected]>--- backends/igvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>