mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Flush the android logging buffer when most recent read fills it up.
This commit is contained in:
parent
e75beaa8d6
commit
1332026bd4
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ fn redirect_stdout_to_logcat() {
|
|||
} else {
|
||||
cursor = 0;
|
||||
}
|
||||
} else if cursor == BUF_AVAILABLE {
|
||||
} else if end == BUF_AVAILABLE {
|
||||
// No newline found but the buffer is full, flush it anyway.
|
||||
// `buf.as_ptr()` is null-terminated by BUF_LENGTH being 1 less than BUF_AVAILABLE.
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue