Skip to content

Commit

Permalink
refactor: console log verbosity
Browse files Browse the repository at this point in the history
As a cosmetic change, slighlty reduce VM/SP header log verbosity from:

SP0x8001@0x0: NOTICE:  Booting Secure Partition (ID: 8001)
SP0x8001@0x0: Built : 00:09:27, Jul 26 2024
SP0x8001@0x0: v2.11(fvp,release):v2.11.0-39-g65442a9
SP0x8002@0x0: NOTICE:  Booting Secure Partition (ID: 8002)

to:

[8001/0] INFO:    ========================================
[8001/0] INFO:    End of FF-A setup and discovery tests
[8001/0] INFO:    ========================================
[8002/0] NOTICE:  Booting Secure Partition (ID: 8002)
[8002/0] Built : 14:02:18, Jul 26 2024

Signed-off-by: Olivier Deprez <[email protected]>
Change-Id: Ida76db12dae0368ba5774bfa6194035577295569
  • Loading branch information
odeprez authored and J-Alves committed Aug 2, 2024
1 parent 052fa62 commit bd43209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -4702,8 +4702,7 @@ void api_flush_log_buffer(struct vcpu_locked *vcpu_locked)
ffa_id_t vcpu_id = vcpu_index(vcpu);

buffer->chars[buffer->len] = '\0';
dlog("%s%#x@%#x: %s\n", ffa_is_vm_id(vm_id) ? "VM" : "SP", vm_id,
vcpu_id, buffer->chars);
dlog("[%x %u] %s\n", vm_id, vcpu_id, buffer->chars);
buffer->len = 0;
}

Expand Down
2 changes: 1 addition & 1 deletion test/hftest/hftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
HFTEST_CTRL_GET_COMMAND_LINE = "[hftest_ctrl:get_command_line]"
HFTEST_CTRL_FINISHED = "[hftest_ctrl:finished]"

HFTEST_CTRL_JSON_REGEX = re.compile("^(VM|SP)0x[0-9a-fA-F]+@0x[0-9a-fA-F]+: ")
HFTEST_CTRL_JSON_REGEX = re.compile("^\\[[0-9a-fA-F]+ [0-9a-fA-F]+\\] ")

HF_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__))))
Expand Down

0 comments on commit bd43209

Please sign in to comment.