From: Catalin Marinas Date: Tue, 12 Nov 2024 14:35:05 +0000 (+0000) Subject: kselftest/arm64: Fix missing printf() argument in gcs/gcs-stress.c X-Git-Tag: v6.13-rc1~203^2~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=016d659e62ad9ddda1b6899468d0d0798ed71a4d;p=thirdparty%2Fkernel%2Flinux.git kselftest/arm64: Fix missing printf() argument in gcs/gcs-stress.c Compiling the child_cleanup() function results in: gcs-stress.c: In function ‘child_cleanup’: gcs-stress.c:266:75: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=] 266 | ksft_print_msg("%s: Exited due to signal %d\n", | ~^ | | | int Add the missing child->exit_signal argument. Fixes: 05e6cfff58c4 ("kselftest/arm64: Add a GCS stress test") Signed-off-by: Catalin Marinas --- diff --git a/tools/testing/selftests/arm64/gcs/gcs-stress.c b/tools/testing/selftests/arm64/gcs/gcs-stress.c index 03222c36c4361..bbc7f4950c13e 100644 --- a/tools/testing/selftests/arm64/gcs/gcs-stress.c +++ b/tools/testing/selftests/arm64/gcs/gcs-stress.c @@ -264,7 +264,7 @@ static void child_cleanup(struct child_data *child) if (WIFSIGNALED(status)) { child->exit_signal = WTERMSIG(status); ksft_print_msg("%s: Exited due to signal %d\n", - child->name); + child->name, child->exit_signal); fail = true; child->exited = true; }