Skip to content

Commit a8cfb03

Browse files
maciejwieczorretmanshuahkh
authored andcommitted
selftests/sigaltstack: Fix wrong format specifier
Compiling sigaltstack selftest after adding a __printf() attribute to ksft_print_msg() exposes -Wformat warning in main(). The format specifier inside ksft_print_msg() expects a long unsigned int but the passed variable is of unsigned int type. Fix the format specifier so it matches the passed variable. Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 4d7f4e8 commit a8cfb03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/testing/selftests/sigaltstack

tools/testing/selftests/sigaltstack/sas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int main(void)
111111

112112
/* Make sure more than the required minimum. */
113113
stack_size = getauxval(AT_MINSIGSTKSZ) + SIGSTKSZ;
114-
ksft_print_msg("[NOTE]\tthe stack size is %lu\n", stack_size);
114+
ksft_print_msg("[NOTE]\tthe stack size is %u\n", stack_size);
115115

116116
ksft_print_header();
117117
ksft_set_plan(3);

0 commit comments

Comments
 (0)