[PATCH 19/21] console: Add a function to read a line of the output / eof

sjg at google.com sjg at google.com
Wed Feb 5 18:55:03 CET 2020


When recording the console output for testing it is useful to be able to
read the output a line at a time to check that the output is correct. Also
we need to check that we get to the end of the output.

Add a console function to return the next line and another to see how must
data is left.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 common/console.c  | 11 +++++++++++
 include/console.h | 19 +++++++++++++++++++
 2 files changed, 30 insertions(+)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list