selftests/openat2: Fix wrong format specifier
authorMaciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Fri, 13 Oct 2023 11:36:27 +0000 (13:36 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 13 Oct 2023 20:08:16 +0000 (14:08 -0600)
commit287d29827ffc97e6978fa030b7412330a93dd38a
treec5e27c0185655e9c2aa7656604aec553f6c6cd65
parent3aa779a9d141f65adbe519653b6aee7188c49e27
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: 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>
tools/testing/selftests/openat2/openat2_test.c