Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver/bareboxdriver: run commands with saved log level
[1] introduced lowering barebox' log level to 0 (emerg) right after the barebox prompt has been detected and recovering the log level right before booting. Tests may rely on log output, though. To enable capturing log messages a command may emit, set the log level to the initially remembered level before the command is executed and reset it to 0 (emerg) after the exit code was emitted. barebox' poller should not run between the echos, so this should be safe. No asynchronous prints are expected to happen during this time. [1] labgrid-project#1221, 6f7bf66 ("driver/bareboxdriver: silence barebox in _await_prompt() and unsilence on boot()") Signed-off-by: Bastian Krause <bst@pengutronix.de>
- Loading branch information