Message ID | 1d2bccaf291207cb1cf2fefa65efc087ccdf20d2.1696846568.git.maciej.wieczor-retman@intel.com |
---|---|
State | Accepted |
Commit | 27c734f4402243f478348108d8a2ebd6e3e5e8a3 |
Headers | show |
Series | [v4,1/8] selftests: Add printf attribute to kselftest prints | expand |
diff --git a/tools/testing/selftests/resctrl/cache.c b/tools/testing/selftests/resctrl/cache.c index d3cbb829ff6a..a5d082cd2d53 100644 --- a/tools/testing/selftests/resctrl/cache.c +++ b/tools/testing/selftests/resctrl/cache.c @@ -294,7 +294,7 @@ int show_cache_info(unsigned long sum_llc_val, int no_of_bits, ret = platform && abs((int)diff_percent) > max_diff_percent && (cmt ? (abs(avg_diff) > max_diff) : true); - ksft_print_msg("%s Check cache miss rate within %d%%\n", + ksft_print_msg("%s Check cache miss rate within %lu%%\n", ret ? "Fail:" : "Pass:", max_diff_percent); ksft_print_msg("Percent diff=%d\n", abs((int)diff_percent));