tests: Use %zu for size_t

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2024-07-26 21:47:58 -04:00 committed by Stefan Berger
parent 1df35f6c77
commit 18cffed604

View File

@ -87,7 +87,7 @@ int main(void)
written = ANY_OBJECT_Marshal(&object, &buf, &size, &g_RuntimeProfile);
if (written != exp_sizes[stateFormatLevel]) {
fprintf(stderr,
"Expected flattened OBJECT to have %d bytes, but it has %u.\n",
"Expected flattened OBJECT to have %zu bytes, but it has %u.\n",
exp_sizes[stateFormatLevel], written);
return EXIT_FAILURE;
}