qemu_validate: Use proper printf directive for ssize_t

In one of recent commits an error message was introduced. In this
message a variable of type ssize_t is being printed out, but the
corresponding format directive is %ld instead of %zd which breaks
on 32bits systems. Switch to proper format.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2022-11-11 14:55:14 +01:00
parent aee64348eb
commit e5d8697585

View File

@ -5047,7 +5047,7 @@ qemuValidateDomainDeviceDefMemory(virDomainMemoryDef *mem,
while ((node = virBitmapNextSetBit(mem->sourceNodes, node)) >= 0) {
if (mem->size > sgxCaps->sgxSections[node].size) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("sgx epc size %lld on host node %ld is less than requested size %lld"),
_("sgx epc size %lld on host node %zd is less than requested size %lld"),
sgxCaps->sgxSections[node].size, node, mem->size);
return -1;
}