From: Daniel P. Berrange Date: Tue, 24 Sep 2013 15:56:53 +0000 (+0100) Subject: Fix format specifier for OOM test fprintfs X-Git-Tag: v1.1.3-rc1~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de87497fd109eea625cfd657fb3d68200290f09a;p=thirdparty%2Flibvirt.git Fix format specifier for OOM test fprintfs 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 --- diff --git a/tests/testutils.c b/tests/testutils.c index a215f3f32c..45882c5288 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;