]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix format specifier for OOM test fprintfs
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 24 Sep 2013 15:56:53 +0000 (16:56 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 24 Sep 2013 15:56:53 +0000 (16:56 +0100)
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

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/testutils.c

index a215f3f32c59f1eccc1f13b152b88c039eac194e..45882c528860412e7ce6e64770bdf0b8bb5569c1 100644 (file)
@@ -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;