mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
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>
This commit is contained in:
parent
e33a02ed6a
commit
3aa779a9d1
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ static const char * const dev_files[] = {
|
||||||
void print_cachestat(struct cachestat *cs)
|
void print_cachestat(struct cachestat *cs)
|
||||||
{
|
{
|
||||||
ksft_print_msg(
|
ksft_print_msg(
|
||||||
"Using cachestat: Cached: %lu, Dirty: %lu, Writeback: %lu, Evicted: %lu, Recently Evicted: %lu\n",
|
"Using cachestat: Cached: %llu, Dirty: %llu, Writeback: %llu, Evicted: %llu, Recently Evicted: %llu\n",
|
||||||
cs->nr_cache, cs->nr_dirty, cs->nr_writeback,
|
cs->nr_cache, cs->nr_dirty, cs->nr_writeback,
|
||||||
cs->nr_evicted, cs->nr_recently_evicted);
|
cs->nr_evicted, cs->nr_recently_evicted);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue