fix(spm): logs with errors in verbose builds

Fix few instances with verbose logs that contained
build errors.

Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I08a2c23d831e5882939efce655c9c95485e2c9b9
diff --git a/spm/cactus/cactus_tests/cactus_test_memory_sharing.c b/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
index 8ea85c4..dd25a99 100644
--- a/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
+++ b/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
@@ -203,7 +203,7 @@
 								 mem_func);
 
 	VERBOSE("%x requested to send memory to %x (func: %x), page: %llx\n",
-		source, receiver, mem_func, (uint64_t)share_page_addr);
+		source, receiver_id, mem_func, (uint64_t)share_page_addr);
 
 	const struct ffa_memory_region_constituent constituents[] = {
 		{share_page_addr, 1, 0}
diff --git a/tftf/tests/runtime_services/secure_service/spm_common.c b/tftf/tests/runtime_services/secure_service/spm_common.c
index d6bbda5..ee25c82 100644
--- a/tftf/tests/runtime_services/secure_service/spm_common.c
+++ b/tftf/tests/runtime_services/secure_service/spm_common.c
@@ -537,13 +537,13 @@
 		*ret = ffa_mem_donate(total_length, fragment_length);
 		break;
 	default:
-		ERROR("%s: Invalid func id %d!\n", __func__, mem_func);
+		ERROR("%s: Invalid func id %x!\n", __func__, mem_func);
 		return FFA_MEMORY_HANDLE_INVALID;
 	}
 
 	if (is_ffa_call_error(*ret)) {
 		VERBOSE("%s: Failed to send memory: %d\n", __func__,
-			ffa_error_code(ret));
+			ffa_error_code(*ret));
 		return FFA_MEMORY_HANDLE_INVALID;
 	}