selftests/cachestat: Fix print_cachestat format
authorMaciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Fri, 13 Oct 2023 11:36:26 +0000 (13:36 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 13 Oct 2023 20:08:10 +0000 (14:08 -0600)
commit3aa779a9d141f65adbe519653b6aee7188c49e27
tree088e4fa763692cef8675a58edce06c2603524787
parente33a02ed6a4fbadfa7813831f1f52874c991d324
selftests/cachestat: Fix print_cachestat format

Compiling cachestat selftest after adding a __printf() attribute to
ksft_print_msg() exposes a -Wformat warning in print_cachestat().
The format specifier in printf() call expects long int variables and
received long long int.

Change format specifiers to long long int so they match passed
variables.

Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/cachestat/test_cachestat.c