mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
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:
parent
068add8ea9
commit
1fc288e1e2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user