Skip to content

Commit dc93090

Browse files
aescolarcfriedt
authored andcommitted
tests: i2c_ram: Fix assert message
Being pedantic, the second parameter to zassert_ok() is supposed to be a literal format specifier string. (Just as for printf()). Not directly a variable string to be printed. Let's fix it. Fixes this build warning: `warning: format not a string literal and no format arguments` Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent ec3bcd3 commit dc93090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/drivers/i2c/i2c_ram/src/test_i2c_ram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static void check_completion(struct rtio_cqe *cqe, const char *msg)
202202
result = cqe->result;
203203
rtio_cqe_release(&i2c_rtio, cqe);
204204
if (result) {
205-
zassert_ok(result, msg);
205+
zassert_ok(result, "%s", msg);
206206
}
207207
}
208208

0 commit comments

Comments
 (0)