tests: logging: log_api: Minor fix in the test
Size of wrong string was used. It was not seen since length was later on aligned but may lead to failures in the future. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
b98f8e39fa
commit
ce55b72752
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ static size_t get_long_hexdump(void)
|
||||||
if (IS_ENABLED(CONFIG_LOG2)) {
|
if (IS_ENABLED(CONFIG_LOG2)) {
|
||||||
return CONFIG_LOG_BUFFER_SIZE -
|
return CONFIG_LOG_BUFFER_SIZE -
|
||||||
/* First message */
|
/* First message */
|
||||||
ROUND_UP(LOG2_SIMPLE_MSG_LEN + 2 * sizeof(int) + STR_SIZE("test %d"),
|
ROUND_UP(LOG2_SIMPLE_MSG_LEN + 2 * sizeof(int) + STR_SIZE("test %d %d"),
|
||||||
sizeof(long long)) -
|
sizeof(long long)) -
|
||||||
/* Hexdump message excluding data */
|
/* Hexdump message excluding data */
|
||||||
ROUND_UP(LOG2_SIMPLE_MSG_LEN + STR_SIZE("hexdump"),
|
ROUND_UP(LOG2_SIMPLE_MSG_LEN + STR_SIZE("hexdump"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue