mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +00:00
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 <berrange@redhat.com>
This commit is contained in:
parent
21114ce9c2
commit
de87497fd1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user