mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01: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 {
|
} else {
|
||||||
cursor = 0;
|
cursor = 0;
|
||||||
}
|
}
|
||||||
} else if cursor == BUF_AVAILABLE {
|
} else if end == BUF_AVAILABLE {
|
||||||
// No newline found but the buffer is full, flush it anyway.
|
// 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.
|
// `buf.as_ptr()` is null-terminated by BUF_LENGTH being 1 less than BUF_AVAILABLE.
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue