tests: subsys: logging: log_api: Minor improvemnt in mock
Use long long to print 64 bit timestamps in zassert macro. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
12f366c954
commit
013c2da3e1
1 changed files with 4 additions and 0 deletions
|
@ -271,7 +271,11 @@ static void process(const struct log_backend *const backend,
|
|||
}
|
||||
|
||||
zassert_equal(msg->log.hdr.timestamp, exp->timestamp,
|
||||
#if CONFIG_LOG_TIMESTAMP_64BIT
|
||||
"Got: %llu, expected: %llu",
|
||||
#else
|
||||
"Got: %u, expected: %u",
|
||||
#endif
|
||||
msg->log.hdr.timestamp, exp->timestamp);
|
||||
zassert_equal(msg->log.hdr.desc.level, exp->level, NULL);
|
||||
zassert_equal(msg->log.hdr.desc.domain, exp->domain_id, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue