aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-Alves <joao.alves@arm.com>2023-08-02 13:40:07 +0100
committerJoao Alves <joao.alves@arm.com>2023-09-13 12:02:24 +0200
commitb882db984846616c1b061e6a0ededa4b0a4049f8 (patch)
tree0c11d8de76828c2c4eb7e774d6a89ef5229e4b49
parentd2887dcd44a3e0d2a67895ddb078877b98f0c2f1 (diff)
refactor: logs to print SP/VM tags
Log functions were changing such that a log from a VM will start with VM, and a log from an SP will start with SP. Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: I7f616d521a27a938589b06dd1c266f42967e5868
-rw-r--r--src/dlog.c6
-rwxr-xr-xtest/hftest/hftest.py2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/dlog.c b/src/dlog.c
index 784c1f6a..4901c3d4 100644
--- a/src/dlog.c
+++ b/src/dlog.c
@@ -225,7 +225,11 @@ void dlog_flush_vm_buffer(ffa_id_t id, char buffer[], size_t length)
{
lock();
- print_raw_string("VM ");
+ if (ffa_is_vm_id(id)) {
+ print_raw_string("VM ");
+ } else {
+ print_raw_string("SP ");
+ }
print_num(id, 16, 0, 0);
print_raw_string(": ");
diff --git a/test/hftest/hftest.py b/test/hftest/hftest.py
index 8deaee64..303c2234 100755
--- a/test/hftest/hftest.py
+++ b/test/hftest/hftest.py
@@ -774,7 +774,7 @@ class TestRunner:
lines_to_process = lines_to_process[hftest_start : hftest_end]
for line in lines_to_process:
- match = re.search(f"^VM \d+: ", line)
+ match = re.search(f"^(VM|SP) \d+: ", line)
if match is not None:
line = line[match.end():]
if line.startswith(HFTEST_LOG_PREFIX):