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.
This commit is contained in:
Eric Blake 2011-04-21 08:23:59 -06:00
parent 068add8ea9
commit 1fc288e1e2

View File

@ -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;