Skip to content
Commit 0a549ed2 authored by David Gow's avatar David Gow Committed by Shuah Khan
Browse files

lib: memcpy_kunit: Fix an invalid format specifier in an assertion msg



The 'i' passed as an assertion message is a size_t, so should use '%zu',
not '%d'.

This was found by annotating the _MSG() variants of KUnit's assertions
to let gcc validate the format strings.

Fixes: bb95ebbe ("lib: Introduce CONFIG_MEMCPY_KUNIT_TEST")
Signed-off-by: default avatarDavid Gow <davidgow@google.com>
Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarJustin Stitt <justinstitt@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent d2733a02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment