Skip to content

Commit 016d659

Browse files
committed
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: 05e6cff ("kselftest/arm64: Add a GCS stress test") Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 1caeda5 commit 016d659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/arm64/gcs/gcs-stress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static void child_cleanup(struct child_data *child)
264264
if (WIFSIGNALED(status)) {
265265
child->exit_signal = WTERMSIG(status);
266266
ksft_print_msg("%s: Exited due to signal %d\n",
267-
child->name);
267+
child->name, child->exit_signal);
268268
fail = true;
269269
child->exited = true;
270270
}

0 commit comments

Comments
 (0)