[libvirt] [PATCH] xenconfig: fix compilation error

Jim Fehlig posted 1 patch 6 years, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20171117174952.837-1-jfehlig@suse.com
src/xenconfig/xen_xl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[libvirt] [PATCH] xenconfig: fix compilation error
Posted by Jim Fehlig 6 years, 5 months ago
Commit 03d0959a introduced a compilation error in
src/xenconfig/xen_xl.c on ARM. Found by Xen's osstest

http://logs.test-lab.xenproject.org/osstest/logs/116216/build-armhf-libvirt/6.ts-libvirt-build.log
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
---

Pushing under the build-breaker rule.

 src/xenconfig/xen_xl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c
index 05146d7db..984024bba 100644
--- a/src/xenconfig/xen_xl.c
+++ b/src/xenconfig/xen_xl.c
@@ -1261,11 +1261,11 @@ xenFormatXLVnuma(virConfValuePtr list,
     numaVnode->list = NULL;
 
     /* pnode */
-    virBufferAsprintf(&buf, "pnode=%ld", node);
+    virBufferAsprintf(&buf, "pnode=%zu", node);
     xenFormatXLVnode(numaVnode, &buf);
 
     /* size */
-    virBufferAsprintf(&buf, "size=%ld", nodeSize);
+    virBufferAsprintf(&buf, "size=%zu", nodeSize);
     xenFormatXLVnode(numaVnode, &buf);
 
     /* vcpus */
-- 
2.15.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list