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