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 <[email protected]> --- common/console.c | 11 +++++++++++ include/console.h | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) Applied to u-boot-dm, thanks!

