semaphore: fix Wformat warning (#2194)
Some checks failed
Presubmit / Build ubuntu-22.04 gl (push) Failing after 2s
Presubmit / Build ubuntu-22.04 aarch64 debug (push) Failing after 1s
Presubmit / Build ubuntu-22.04 arm (push) Failing after 1s
Presubmit / Build ubuntu-22.04 android-aarch64 (push) Failing after 1s
Presubmit / Build ubuntu-22.04 android-arm (push) Failing after 2s
Presubmit / Check code format (push) Failing after 5m1s
Presubmit / Build macos-latest (push) Has been cancelled
Presubmit / Build windows-latest (push) Has been cancelled

`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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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