Skip to content
Snippets Groups Projects
Commit f71f3423 authored by Leandro Belli's avatar Leandro Belli :space_invader: Committed by tarek-arm
Browse files

fwk_core: Fix buffered log output behaviour


When the subsystem mode was disabled, the system would be suspended
even if there were characters waiting to be printed. This resulted
in only one character being printed each time the system woke up.
The issue was resolved by preventing the system from being suspended
when there were elements in the output log buffer that were ready
to be printed.

Signed-off-by: Leandro Belli's avatarLeandro Belli <leandro.belli@arm.com>
Change-Id: I63322343130b84ba8f10294340cf64d413c07931
parent 2e931f3f
Branches main
Tags
No related merge requests found
......@@ -306,8 +306,9 @@ noreturn void __fwk_run_main_loop(void)
{
for (;;) {
fwk_process_event_queue();
(void)fwk_log_unbuffer();
fwk_arch_suspend();
if (fwk_log_unbuffer() == FWK_SUCCESS) {
fwk_arch_suspend();
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment