From 1fc288e1e25eeb94b705cedbff7cd04b45cca79d Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 21 Apr 2011 08:23:59 -0600 Subject: [PATCH] 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. --- tests/hashtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab