regression 1010: fix wrong printf format specifier
Fix wrong format specifier, which causes build errors:
error: format '%d' expects argument of type 'int', but argument 4 has type
'size_t {aka long unsigned int}' [-Werror=format=]
"Invalid memory access %u with %d bytes memref",
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
diff --git a/host/xtest/regression_1000.c b/host/xtest/regression_1000.c
index c0d1490..0fa9d66 100644
--- a/host/xtest/regression_1000.c
+++ b/host/xtest/regression_1000.c
@@ -889,11 +889,11 @@
for (idx = 0; idx < ARRAY_SIZE(memref_sz); idx++) {
for (n = 1; n <= 5; n++) {
Do_ADBG_BeginSubCase(c,
- "Invalid memory access %u with %d bytes memref",
+ "Invalid memory access %u with %zu bytes memref",
n, memref_sz[idx]);
xtest_tee_test_invalid_mem_access2(c, n, memref_sz[idx]);
Do_ADBG_EndSubCase(c,
- "Invalid memory access %u with %d bytes memref",
+ "Invalid memory access %u with %zu bytes memref",
n, memref_sz[idx]);
}
}