Skip to content

Commit e750747

Browse files
Fenghua Yushuahkh
authored andcommitted
selftests/resctrl: Change a few printed messages
Change a few printed messages to report test progress more clearly. Add a missing "\n" at the end of one printed message. Suggested-by: Shuah Khan <[email protected]> Signed-off-by: Fenghua Yu <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 87f1c20 commit e750747

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

tools/testing/selftests/resctrl/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ int show_cache_info(unsigned long sum_llc_val, int no_of_bits,
301301
ret = platform && abs((int)diff_percent) > max_diff_percent &&
302302
(cmt ? (abs(avg_diff) > max_diff) : true);
303303

304-
ksft_print_msg("%s cache miss rate within %d%%\n",
304+
ksft_print_msg("%s Check cache miss rate within %d%%\n",
305305
ret ? "Fail:" : "Pass:", max_diff_percent);
306306

307307
ksft_print_msg("Percent diff=%d\n", abs((int)diff_percent));

tools/testing/selftests/resctrl/mba_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void show_mba_info(unsigned long *bw_imc, unsigned long *bw_resc)
8080
avg_diff = (float)labs(avg_bw_resc - avg_bw_imc) / avg_bw_imc;
8181
avg_diff_per = (int)(avg_diff * 100);
8282

83-
ksft_print_msg("%s MBA: diff within %d%% for schemata %u\n",
83+
ksft_print_msg("%s Check MBA diff within %d%% for schemata %u\n",
8484
avg_diff_per > MAX_DIFF_PERCENT ?
8585
"Fail:" : "Pass:",
8686
MAX_DIFF_PERCENT,
@@ -93,10 +93,10 @@ static void show_mba_info(unsigned long *bw_imc, unsigned long *bw_resc)
9393
failed = true;
9494
}
9595

96-
ksft_print_msg("%s schemata change using MBA\n",
96+
ksft_print_msg("%s Check schemata change using MBA\n",
9797
failed ? "Fail:" : "Pass:");
9898
if (failed)
99-
ksft_print_msg("At least one test failed");
99+
ksft_print_msg("At least one test failed\n");
100100
}
101101

102102
static int check_results(void)

tools/testing/selftests/resctrl/mbm_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ show_bw_info(unsigned long *bw_imc, unsigned long *bw_resc, int span)
3737
avg_diff_per = (int)(avg_diff * 100);
3838

3939
ret = avg_diff_per > MAX_DIFF_PERCENT;
40-
ksft_print_msg("%s MBM: diff within %d%%\n",
40+
ksft_print_msg("%s Check MBM diff within %d%%\n",
4141
ret ? "Fail:" : "Pass:", MAX_DIFF_PERCENT);
4242
ksft_print_msg("avg_diff_per: %d%%\n", avg_diff_per);
4343
ksft_print_msg("Span (MB): %d\n", span);

tools/testing/selftests/resctrl/resctrlfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,14 +570,14 @@ bool check_resctrlfs_support(void)
570570

571571
fclose(inf);
572572

573-
ksft_print_msg("%s kernel supports resctrl filesystem\n",
573+
ksft_print_msg("%s Check kernel supports resctrl filesystem\n",
574574
ret ? "Pass:" : "Fail:");
575575

576576
if (!ret)
577577
return ret;
578578

579579
dp = opendir(RESCTRL_PATH);
580-
ksft_print_msg("%s resctrl mountpoint \"%s\" exists\n",
580+
ksft_print_msg("%s Check resctrl mountpoint \"%s\" exists\n",
581581
dp ? "Pass:" : "Fail:", RESCTRL_PATH);
582582
if (dp)
583583
closedir(dp);

0 commit comments

Comments
 (0)