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: 05e6cfff58 ("kselftest/arm64: Add a GCS stress test")
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
Catalin Marinas 2024-11-12 14:35:05 +00:00
parent 1caeda5ef2
commit 016d659e62

View File

@ -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;
}