diff options
| author | Tom Cherry <tomcherry@google.com> | 2020-06-03 09:23:49 -0700 |
|---|---|---|
| committer | Tom Cherry <tomcherry@google.com> | 2020-06-03 16:29:48 -0700 |
| commit | 02c4b1557223c1ecada9bd355aad036253d76d50 (patch) | |
| tree | 9f5a7eba41c964b28ccb3f549451b0c5cd36e76f /logd/LogBufferTest.cpp | |
| parent | c47c27fe0ae5b4edb1a1641ff52b13a469d45576 (diff) | |
logd: use libbase logging
We can use libbase logging to output to the kernel log instead of the
'prdebug' function, so use that instead.
Bonus #1: we can now use CHECK().
Bonus #2: logging unit tests automatically output to stderr.
Bonus #3: We see dependent library's logs instead of losing them to
the void.
Test: logging unit tests
Test: logs show appropriately in dmesg / stderr
Test: CHECK() works
Change-Id: I92f8056b4820dc4998996cf46460568085299700
Diffstat (limited to 'logd/LogBufferTest.cpp')
| -rw-r--r-- | logd/LogBufferTest.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/logd/LogBufferTest.cpp b/logd/LogBufferTest.cpp index ced4a215f8..e651b4fec6 100644 --- a/logd/LogBufferTest.cpp +++ b/logd/LogBufferTest.cpp @@ -43,14 +43,6 @@ bool __android_logger_valid_buffer_size(unsigned long) { } #endif -void android::prdebug(const char* fmt, ...) { - va_list ap; - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - fprintf(stderr, "\n"); - va_end(ap); -} - char* android::uidToName(uid_t) { return nullptr; } |
