refactor(tests): drop IS_VM_ID and IS_SP_ID
Replace convenience macros IS_VM_ID and IS_SP_ID
with the function helper ffa_is_vm_id.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I420bfe16c36c5d780b30cb8917662601b6551ab5
diff --git a/test/hftest/service_common.c b/test/hftest/service_common.c
index 959d193..3e121e8 100644
--- a/test/hftest/service_common.c
+++ b/test/hftest/service_common.c
@@ -187,12 +187,13 @@
* the dt provided by the Hypervisor. SPs expect to receive their
* FF-A manifest which doesn't have a memory size field.
*/
- if (IS_VM_ID(own_id) && !fdt_get_memory_size(&fdt, &ctx->memory_size)) {
+ if (ffa_is_vm_id(own_id) &&
+ !fdt_get_memory_size(&fdt, &ctx->memory_size)) {
HFTEST_LOG_FAILURE();
HFTEST_LOG(HFTEST_LOG_INDENT
"No entry in the FDT on memory size details");
abort();
- } else if (!IS_VM_ID(own_id)) {
+ } else if (!ffa_is_vm_id(own_id)) {
/*
* It is secure partition. We are currently using the partition
* manifest for the SP.