]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kcsan: Fix printk format string
authorArnd Bergmann <arnd@arndb.de>
Wed, 21 Apr 2021 13:50:38 +0000 (15:50 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 22 Apr 2021 12:36:03 +0000 (14:36 +0200)
commitf4abe9967c6fdb511ee567e129a014b60945ab93
treee0693e15d4bd394b75e30ccea58f28a824ca77fb
parentc9450f728cfba0613163ed85f8c26eeeeed9def2
kcsan: Fix printk format string

Printing a 'long' variable using the '%d' format string is wrong
and causes a warning from gcc:

kernel/kcsan/kcsan_test.c: In function 'nthreads_gen_params':
include/linux/kern_levels.h:5:25: error: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Werror=format=]

Use the appropriate format modifier.

Fixes: f6a149140321 ("kcsan: Switch to KUNIT_CASE_PARAM for parameterized tests")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Marco Elver <elver@google.com>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Link: https://lkml.kernel.org/r/20210421135059.3371701-1-arnd@kernel.org
kernel/kcsan/kcsan_test.c