WSL2-Linux-Kernel/kernel/kcsan
Arnd Bergmann f4abe9967c 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: f6a1491403 ("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
2021-04-22 14:36:03 +02:00
..
Makefile kcsan: Make test follow KUnit style recommendations 2021-03-08 14:27:43 -08:00
atomic.h kcsan: Add missing license and copyright headers 2021-03-08 14:27:43 -08:00
core.c kcsan: Add missing license and copyright headers 2021-03-08 14:27:43 -08:00
debugfs.c kcsan: Add missing license and copyright headers 2021-03-08 14:27:43 -08:00
encoding.h kcsan: Add missing license and copyright headers 2021-03-08 14:27:43 -08:00
kcsan.h kcsan: Add missing license and copyright headers 2021-03-08 14:27:43 -08:00
kcsan_test.c kcsan: Fix printk format string 2021-04-22 14:36:03 +02:00
report.c kcsan: Add missing license and copyright headers 2021-03-08 14:27:43 -08:00
selftest.c kcsan: Add missing license and copyright headers 2021-03-08 14:27:43 -08:00