diff options
author | Matthew Maurer <mmaurer@google.com> | 2022-02-24 13:46:10 -0800 |
---|---|---|
committer | Matthew Maurer <mmaurer@google.com> | 2022-02-24 13:46:10 -0800 |
commit | e19343ab520ed0756f2ea7d9ba35ec4882b68fb5 (patch) | |
tree | 2987d16a0f8362f9d255e549007ad1a13e61efd1 /src | |
parent | 69195790ecfd855e7b20871db863254bee6d50ab (diff) | |
download | android_log-sys-e19343ab520ed0756f2ea7d9ba35ec4882b68fb5.tar.gz |
Add support for selecting log buffers
While `__android_log_write_log_message` can select a target log buffer,
it did not exist before API version 30. To allow selecting a log buffer
for earlier APIs, we add a signature for `__android_log_buf_write`.
Test: Check keystore2 logs still end up in system
Bug: 221185310
Change-Id: I741a17df5026e16e3cb3263876c4f588eb3ff60e
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -66,6 +66,11 @@ extern "C" { tag: *const c_char, text: *const c_char) -> c_int; + pub fn __android_log_buf_write(bufID: c_int, + prio: c_int, + tag: *const c_char, + text: *const c_char) + -> c_int; pub fn __android_log_print(prio: c_int, tag: *const c_char, fmt: *const c_char, |