semaphore: fix Wformat warning (#2194)

`i` is an `int`, so shouldn't use the `%zu` specifier for printing.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2024-12-17 19:11:36 +01:00
committed by GitHub
parent e17e6eef7b
commit 9bb8a89bbd

View File

@@ -277,7 +277,7 @@ struct SemaphoreOutOfOrderOps : public SemaphoreTestBase
{
if (pattern != host_buffer[i])
{
log_error("Expected %d was %d at index %zu\n", pattern,
log_error("Expected %d was %d at index %d\n", pattern,
host_buffer[i], i);
return false;
}