]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/sgx: Remove extra newlines in test output
authorReinette Chatre <reinette.chatre@intel.com>
Tue, 8 Feb 2022 21:48:42 +0000 (13:48 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Fri, 11 Feb 2022 21:52:48 +0000 (13:52 -0800)
commitb4ff17f1af2f0571e39198f64066698f412269ec
tree2a9769d22643c50acc8c2e6e21c31be2be507ef3
parent4ee93205231b1f191d6e8893df0ed61ec55eb5a2
selftests/sgx: Remove extra newlines in test output

The TH_LOG() macro is an optional debug logging function made
available by kselftest itself. When TH_LOG_ENABLED is set it
prints the provided message with additional information and
formatting that already includes a newline.

Providing a newline to the message printed by TH_LOG() results
in a double newline that produces irregular test output.

Remove the unnecessary newlines from the text provided to
TH_LOG().

Fixes: 397e2692fa17 ("selftests/sgx: Encpsulate the test enclave creation")
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lkml.kernel.org/r/6fd171ba622aed172a7c5b129d34d50bd0482f24.1644355600.git.reinette.chatre@intel.com
tools/testing/selftests/sgx/main.c