diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2024-11-12 14:35:05 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2024-11-12 14:39:30 +0000 |
commit | 016d659e62ad9ddda1b6899468d0d0798ed71a4d (patch) | |
tree | e02cd913ea4a544319b5842d65cb0b299972d7bc /tools/testing | |
parent | 1caeda5ef2510e8af57b75edb74bd1daa6364c1e (diff) |
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 <catalin.marinas@arm.com>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/arm64/gcs/gcs-stress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/arm64/gcs/gcs-stress.c b/tools/testing/selftests/arm64/gcs/gcs-stress.c index 03222c36c436..bbc7f4950c13 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; } |