[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <b57a42ccba086c42dcdcf42d8e450817c22c4cad.1583657204.git.sai.praneeth.prakhya@intel.com>
Date: Fri, 6 Mar 2020 19:40:43 -0800
From: Sai Praneeth Prakhya <sai.praneeth.prakhya@...el.com>
To: shuah@...nel.org, linux-kselftest@...r.kernel.org
Cc: tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
tony.luck@...el.com, reinette.chatre@...el.com, babu.moger@....com,
james.morse@....com, ravi.v.shankar@...el.com,
fenghua.yu@...el.com, x86@...nel.org, linux-kernel@...r.kernel.org,
Sai Praneeth Prakhya <sai.praneeth.prakhya@...el.com>
Subject: [PATCH V1 02/13] selftests/resctrl: Fix typo
From: Reinette Chatre <reinette.chatre@...el.com>
The format "%sok" is used to print results of a test. If the test
passes, the empty string is printed and if the test fails "not " is
printed. This results in output of "ok" when test passes and "not ok"
when test fails.
Fix one instance where "not" (without a space) is printed on test
failure resulting in output of "notok" on test failure.
Signed-off-by: Reinette Chatre <reinette.chatre@...el.com>
Signed-off-by: Sai Praneeth Prakhya <sai.praneeth.prakhya@...el.com>
---
tools/testing/selftests/resctrl/cqm_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/resctrl/cqm_test.c b/tools/testing/selftests/resctrl/cqm_test.c
index c8756152bd61..fb4797cfda09 100644
--- a/tools/testing/selftests/resctrl/cqm_test.c
+++ b/tools/testing/selftests/resctrl/cqm_test.c
@@ -58,7 +58,7 @@ static void show_cache_info(unsigned long sum_llc_occu_resc, int no_of_bits,
else
res = false;
- printf("%sok CQM: diff within %d, %d\%%\n", res ? "" : "not",
+ printf("%sok CQM: diff within %d, %d\%%\n", res ? "" : "not ",
MAX_DIFF, (int)MAX_DIFF_PERCENT);
printf("# diff: %ld\n", avg_diff);
--
2.7.4
Powered by blists - more mailing lists