diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2015-06-12 14:59:42 -0700 |
|---|---|---|
| committer | Mark Salyzyn <salyzyn@google.com> | 2015-06-15 14:22:02 -0700 |
| commit | d5600fd40fac5e90532ea08e22940965cfdd7710 (patch) | |
| tree | 469cfcb4f1f6718fa4a82f7c5aeaa456eb1010be /libutils/Unicode_test.cpp | |
| parent | bd1ef90448c32e2beec4c66f08fe613bcc632cc8 (diff) | |
logd: missing klogd content
(cherry pick from commit ee49c6a670a54e0636f81f39ddc93c87c9a4d766)
- regression in log_strtok_r (part deux) In commit
'logd: fix kernel logline stutter'
2c3b300fd8307e8da13608197d0a89bc613de5fb we introduced log_strtok_r.
as a replacement for strtok_r that dealt with a problem with
some kernel log messages. Fix is to refine definition of
is_timestamp to not match on patterns like [0], requiring
a single period. Another fix is to refine definition of
is_prio to properly escape non-digit content.
- Missing content because SYSLOG_ACTION_SIZE_BUFFER with added logging
is too short for full read of SYSLOG_ACTION_READ_ALL dropping
initial content. Add a margin for additional 1024 bytes.
- Absolute _first_ log entry has sequence number of 1, which is
specifically dropped, start sequence count at 1 rather than 0.
- Remove trailing space for efficiency.
- If tag exists but no content, trick into kernel logging.
Bug: 21851884
Change-Id: I0867a555a3bca09bbf18d18e75e41dffffe57a23
Diffstat (limited to 'libutils/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions
