[PATCH] Fix format specifier for OOM test fprintfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

The testutils.c file had some fprintfs which had not been
converted from %d to %zu, when 'testCounter' change to be
a size_t. This was a build breaker if --enable-test-oom
was enabled

Pushed as a build fix

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 tests/testutils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/testutils.c b/tests/testutils.c
index a215f3f..45882c5 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -717,9 +717,9 @@ int virtTestMain(int argc,
         approxAlloc = virAllocTestCount();
         testCounter++;
         if (virTestGetDebug())
-            fprintf(stderr, "%d) OOM...\n", testCounter);
+            fprintf(stderr, "%zu) OOM...\n", testCounter);
         else
-            fprintf(stderr, "%d) OOM of %d allocs ", testCounter, approxAlloc);
+            fprintf(stderr, "%zu) OOM of %d allocs ", testCounter, approxAlloc);
 
         if (mp) {
             size_t i;
-- 
1.8.3.1

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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]