summaryrefslogtreecommitdiff
path: root/spm/cactus/cactus_tests
diff options
context:
space:
mode:
authorJ-Alves <joao.alves@arm.com>2021-02-22 12:21:44 +0000
committerJ-Alves <joao.alves@arm.com>2021-03-12 14:28:28 +0000
commit43887ec0836c35feb433c02f00678085d1513782 (patch)
tree82e110273cf355761943588bd624f2452c7303e5 /spm/cactus/cactus_tests
parentecd307465ef642a8ab9f2bfcc56c2580e6d66a86 (diff)
SPM: Helpers for error logging after FF-A calls
Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: I7c4cb416baf6eb024eb134edb4bbb62d8746629f
Diffstat (limited to 'spm/cactus/cactus_tests')
-rw-r--r--spm/cactus/cactus_tests/cactus_test_direct_messaging.c2
-rw-r--r--spm/cactus/cactus_tests/cactus_test_memory_sharing.c7
2 files changed, 1 insertions, 8 deletions
diff --git a/spm/cactus/cactus_tests/cactus_test_direct_messaging.c b/spm/cactus/cactus_tests/cactus_test_direct_messaging.c
index f4c7890..31324b6 100644
--- a/spm/cactus/cactus_tests/cactus_test_direct_messaging.c
+++ b/spm/cactus/cactus_tests/cactus_test_direct_messaging.c
@@ -33,8 +33,6 @@ CACTUS_CMD_HANDLER(req_echo_cmd, CACTUS_REQ_ECHO_CMD)
ffa_ret = cactus_echo_send_cmd(vm_id, echo_dest, echo_val);
if (!is_ffa_direct_response(ffa_ret)) {
- ERROR("Failed to send message. error: %x\n",
- ffa_error_code(ffa_ret));
return cactus_error_resp(vm_id, ffa_dir_msg_source(*args),
CACTUS_ERROR_FFA_CALL);
}
diff --git a/spm/cactus/cactus_tests/cactus_test_memory_sharing.c b/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
index 82cdac3..f7d9235 100644
--- a/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
+++ b/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
@@ -137,9 +137,6 @@ CACTUS_CMD_HANDLER(req_mem_send_cmd, CACTUS_REQ_MEM_SEND_CMD)
ffa_ret = cactus_mem_send_cmd(vm_id, receiver, mem_func, handle);
if (!is_ffa_direct_response(ffa_ret)) {
- ERROR("Failed to send message. ret: %x error: %x\n",
- ffa_func_id(ffa_ret),
- ffa_error_code(ffa_ret));
return cactus_error_resp(vm_id, source, CACTUS_ERROR_FFA_CALL);
}
@@ -156,9 +153,7 @@ CACTUS_CMD_HANDLER(req_mem_send_cmd, CACTUS_REQ_MEM_SEND_CMD)
* permanently given up access to the memory region.
*/
ffa_ret = ffa_mem_reclaim(handle, 0);
- if (ffa_func_id(ffa_ret) == FFA_ERROR) {
- ERROR("Failed to reclaim memory! error: %x\n",
- ffa_error_code(ffa_ret));
+ if (is_ffa_call_error(ffa_ret)) {
return cactus_error_resp(vm_id, source,
CACTUS_ERROR_TEST);
}