[libvirt] [PATCH] util: Fix travis build error

John Ferlan jferlan at redhat.com
Thu Sep 20 19:01:02 UTC 2018


Commit 12093f1f used %ld instead of %zd for a size_t.

Signed-off-by: John Ferlan <jferlan at redhat.com>
---

 Sigh, always something simple.
 Pushed under the build breaker rule.

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

diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c
index eddcc41b67..1019bb52cc 100644
--- a/src/util/virresctrl.c
+++ b/src/util/virresctrl.c
@@ -676,7 +676,7 @@ virResctrlGetMonitorInfo(virResctrlInfoPtr resctrl)
     }
 
     features = virStringSplitCount(featurestr, "\n", 0, &nfeatures);
-    VIR_DEBUG("Resctrl supported %ld monitoring features", nfeatures);
+    VIR_DEBUG("Resctrl supported %zd monitoring features", nfeatures);
 
     info_monitor->nfeatures = nfeatures;
     VIR_STEAL_PTR(info_monitor->features, features);
-- 
2.17.1




More information about the libvir-list mailing list