| commit | e96e2dbad90b6fd6fbc9f43aae542bf161676296 | [log] [tgz] |
|---|---|---|
| author | Mark Salyzyn <salyzyn@google.com> | Tue Feb 28 09:20:31 2017 -0800 |
| committer | Mark Salyzyn <salyzyn@google.com> | Wed Mar 01 08:48:33 2017 -0800 |
| tree | d2b474024f1faf6968923327f5e736072c3dc7d8 | |
| parent | 5457d845c1745482e83fd53389e60230da7b378f [diff] |
liblogcat: -v and ${ANDROID_PRINTF_LOG} support comma separated list
Deal with yet another reentrancy issue with strtok() and do not
treat optarg as fungible data, allocate a temporary copy. Add
support in the -v flag and environmental variable ANDROID_PRINTF_LOG
for a comma-separated list of format and format modifiers.
Test: manual + gTest logcat-unit-tests
Bug: 35326290
Change-Id: I073e5676d59ba41bfd36df86942342766ef730f1