summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-05-27 19:15:58 +0300
committerThomas Weißschuh <linux@weissschuh.net>2024-06-29 10:44:53 +0300
commit92098b1c10cb29bcc6fa0908a766dc9e16b1e889 (patch)
treef1b390cc082ad28e747c0aa08e9b52129d803504 /scripts/gdb/linux/modules.py
parentf2661062f16b2de5d7b6a5c42a9a5c96326b8454 (diff)
downloadlinux-92098b1c10cb29bcc6fa0908a766dc9e16b1e889.tar.xz
selftests/nolibc: fix printf format mismatch in expect_str_buf_eq()
Fix the following compiler warning on 32bit: i386-linux-gcc -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 -W -Wall -Wextra -fno-stack-protector -m32 -mstack-protector-guard=global -fstack-protector-all -o nolibc-test \ -nostdlib -nostdinc -static -Isysroot/i386/include nolibc-test.c nolibc-test-linkage.c -lgcc nolibc-test.c: In function 'expect_str_buf_eq': nolibc-test.c:610:30: error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Werror=format=] 610 | llen += printf(" = %lu <%s> ", expr, buf); | ~~^ ~~~~ | | | | | size_t {aka unsigned int} | long unsigned int | %u Fixes: 1063649cf531 ("selftests/nolibc: Add tests for strlcat() and strlcpy()") Cc: stable@vger.kernel.org Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions