]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_validate: Use proper printf directive for ssize_t
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Nov 2022 13:55:14 +0000 (14:55 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Nov 2022 15:51:39 +0000 (16:51 +0100)
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>
src/qemu/qemu_validate.c

index bd040c7ff8b394a7220d2b668f062af6dcb8b4aa..c687df0bfc6d46286cde232f217025a230f2daed 100644 (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;
                 }