From: Eric Blake Date: Thu, 21 Apr 2011 14:23:59 +0000 (-0600) Subject: build: fix 32-bit test failure X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1fc288e1e25;p=libvirt.git build: fix 32-bit test failure ARRAY_CARDINALITY is typed as size_t, not long; this matters on 32-bit platforms: hashtest.c: In function 'testHashRemoveForEach': hashtest.c:114: error: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat] * tests/hashtest.c (testHashRemoveForEach): Use correct format. --- diff --git a/tests/hashtest.c b/tests/hashtest.c index dff0181665..722b44c01c 100644 --- a/tests/hashtest.c +++ b/tests/hashtest.c @@ -112,7 +112,7 @@ testHashRemoveForEach(const void *data) if (count != ARRAY_CARDINALITY(uuids)) { if (virTestGetVerbose()) { testError("\nvirHashForEach didn't go through all entries," - " %d != %lu\n", + " %d != %zu\n", count, ARRAY_CARDINALITY(uuids)); } goto cleanup;