Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions subsys/testsuite/ztest/include/zephyr/ztest_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ static inline bool z_zexpect_(bool cond, const char *file, int line)

#else /* CONFIG_ZTEST_ASSERT_VERBOSE != 0 */

static inline bool z_zassert(bool cond, const char *default_msg, const char *file, int line,
const char *func, const char *msg, ...)
static inline __printf_like(6, 7) bool z_zassert(bool cond, const char *default_msg,
const char *file, int line, const char *func,
const char *msg, ...)
{
if (cond == false) {
va_list vargs;
Expand All @@ -100,8 +101,9 @@ static inline bool z_zassert(bool cond, const char *default_msg, const char *fil
return true;
}

static inline bool z_zassume(bool cond, const char *default_msg, const char *file, int line,
const char *func, const char *msg, ...)
static inline __printf_like(6, 7) bool z_zassume(bool cond, const char *default_msg,
const char *file, int line, const char *func,
const char *msg, ...)
{
if (cond == false) {
va_list vargs;
Expand All @@ -124,8 +126,9 @@ static inline bool z_zassume(bool cond, const char *default_msg, const char *fil
return true;
}

static inline bool z_zexpect(bool cond, const char *default_msg, const char *file, int line,
const char *func, const char *msg, ...)
static inline __printf_like(6, 7) bool z_zexpect(bool cond, const char *default_msg,
const char *file, int line, const char *func,
const char *msg, ...)
{
if (cond == false) {
va_list vargs;
Expand Down