[PATCH] qemu_validate: Use proper printf directive for ssize_t

Michal Privoznik posted 1 patch 3 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/e5d86975857f1ca5431a84c460adc5bd4a260795.1668181932.git.mprivozn@redhat.com
src/qemu/qemu_validate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] qemu_validate: Use proper printf directive for ssize_t
Posted by Michal Privoznik 3 weeks, 2 days ago
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>
---

Pushed under trivial rule.

 src/qemu/qemu_validate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
index bd040c7ff8..c687df0bfc 100644
--- a/src/qemu/qemu_validate.c
+++ b/src/qemu/qemu_validate.c
@@ -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;
                 }
-- 
2.37.4