summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-03 16:07:01 +0300
committerTom Rini <trini@konsulko.com>2021-08-03 16:07:01 +0300
commitb91c70433386d133c842729c5d9b109cdcc79399 (patch)
tree26ec8aeb2cf89311f4894a8dafc79ce242ac4674 /test
parent3b64774323298362f9833aac75bb4639b4f98999 (diff)
parent18f3afa4be879a9f591518a8f623b30f8b39917d (diff)
downloadu-boot-b91c70433386d133c842729c5d9b109cdcc79399.tar.xz
Merge https://source.denx.de/u-boot/custodians/u-boot-samsung
Diffstat (limited to 'test')
-rw-r--r--test/lib/strlcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/strlcat.c b/test/lib/strlcat.c
index ee61684c40..a0ec037388 100644
--- a/test/lib/strlcat.c
+++ b/test/lib/strlcat.c
@@ -48,7 +48,7 @@ static int do_test_strlcat(struct unit_test_state *uts, int line, size_t align1,
if (expected != actual) {
ut_failf(uts, __FILE__, line, __func__,
"strlcat(s2, s1, 2) == len2 < n ? min(len1 + len2, n) : n",
- "Expected %#lx (%ld), got %#lx (%ld)",
+ "Expected %#zx (%zd), got %#zx (%zd)",
expected, expected, actual, actual);
return CMD_RET_FAILURE;
}
@@ -66,7 +66,7 @@ static int do_test_strlcat(struct unit_test_state *uts, int line, size_t align1,
if (len2 < n && s2[i] != '\0') {
ut_failf(uts, __FILE__, line, __func__,
"n < len1 && s2[len2 + n] == '\\0'",
- "Expected s2[%ld] = '\\0', got %d ('%c')",
+ "Expected s2[%zd] = '\\0', got %d ('%c')",
i, s2[i], s2[i]);
return CMD_RET_FAILURE;
}