mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 23:11:32 +02:00
console: Report an error when output buffer is exhausted
If the console output buffer is exhausted, characters are silently dropped from the end. Detect this condition and report an error when reading back the characters. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -72,7 +72,8 @@ int console_record_reset_enable(void);
|
||||
*
|
||||
* @str: Place to put string
|
||||
* @maxlen: Maximum length of @str including nul terminator
|
||||
* @return length of string returned
|
||||
* @return length of string returned, or -ENOSPC if the console buffer was
|
||||
* overflowed by the output
|
||||
*/
|
||||
int console_record_readline(char *str, int maxlen);
|
||||
|
||||
|
Reference in New Issue
Block a user