diff options
author | 2024-02-21 17:27:16 +0800 | |
---|---|---|
committer | 2024-02-27 15:26:02 -0700 | |
commit | 0a549ed22c3c7cc6da5c5f5918efd019944489a5 (patch) | |
tree | bf675eb03f865bd0435433ac0ae3fbc3fa206a63 /scripts/generate_rust_analyzer.py | |
parent | lib/cmdline: Fix an invalid format specifier in an assertion msg (diff) | |
download | linux-rng-0a549ed22c3c7cc6da5c5f5918efd019944489a5.tar.xz linux-rng-0a549ed22c3c7cc6da5c5f5918efd019944489a5.zip |
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: bb95ebbe89a7 ("lib: Introduce CONFIG_MEMCPY_KUNIT_TEST")
Signed-off-by: David Gow <davidgow@google.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Justin Stitt <justinstitt@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions