]> git.baikalelectronics.ru Git - uboot.git/commit
console: Add a function to read a line of the output / eof
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jan 2020 15:49:54 +0000 (08:49 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
commitb39d111759e42dbe78d96a852878839efca59bc7
tree25f3590d5b57a8d974eecbb63ce9006f98a14e14
parentd4df0c932b23426a9249fe256d76870a0812e542
console: Add a function to read a line of the output / eof

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@chromium.org>
common/console.c
include/console.h