Commit 287d2982 authored by Maciej Wieczor-Retman's avatar Maciej Wieczor-Retman Committed by Shuah Khan

selftests/openat2: Fix wrong format specifier

Compiling openat2 selftest after adding a __printf() attribute to
ksft_print_msg() exposes a -Wformat warning in test_openat2_flags().
The wrong format specifier is used for printing test.how->flags
variable.

Change the format specifier to %llX so it matches the printed variable.
Signed-off-by: default avatarMaciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 3aa779a9
...@@ -300,7 +300,7 @@ void test_openat2_flags(void) ...@@ -300,7 +300,7 @@ void test_openat2_flags(void)
ksft_print_msg("openat2 unexpectedly returned "); ksft_print_msg("openat2 unexpectedly returned ");
if (fdpath) if (fdpath)
ksft_print_msg("%d['%s'] with %X (!= %X)\n", ksft_print_msg("%d['%s'] with %X (!= %llX)\n",
fd, fdpath, fdflags, fd, fdpath, fdflags,
test->how.flags); test->how.flags);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment