summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sgx
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2022-02-09 00:48:42 +0300
committerDave Hansen <dave.hansen@linux.intel.com>2022-02-12 00:52:48 +0300
commit5626de65f97ae152e6dafdc528a36c1cbb7146ee (patch)
tree2a9769d22643c50acc8c2e6e21c31be2be507ef3 /tools/testing/selftests/sgx
parent2db703fc3b15e7ef68c82eca613a3c00d43d70af (diff)
downloadlinux-5626de65f97ae152e6dafdc528a36c1cbb7146ee.tar.xz
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: 1b35eb719549 ("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
Diffstat (limited to 'tools/testing/selftests/sgx')
-rw-r--r--tools/testing/selftests/sgx/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/sgx/main.c b/tools/testing/selftests/sgx/main.c
index b0bd95a4730d..dd74fa42302e 100644
--- a/tools/testing/selftests/sgx/main.c
+++ b/tools/testing/selftests/sgx/main.c
@@ -146,7 +146,7 @@ static bool setup_test_encl(unsigned long heap_size, struct encl *encl,
if (!encl_load("test_encl.elf", encl, heap_size)) {
encl_delete(encl);
- TH_LOG("Failed to load the test enclave.\n");
+ TH_LOG("Failed to load the test enclave.");
return false;
}
@@ -204,7 +204,7 @@ err:
fclose(maps_file);
}
- TH_LOG("Failed to initialize the test enclave.\n");
+ TH_LOG("Failed to initialize the test enclave.");
encl_delete(encl);