summaryrefslogtreecommitdiff
path: root/logd/LogBufferTest.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-06-03 09:23:49 -0700
committerTom Cherry <tomcherry@google.com>2020-06-03 16:29:48 -0700
commitf93b4006e0b1afdf304b39d13f96d9766ec14a30 (patch)
tree9f5a7eba41c964b28ccb3f549451b0c5cd36e76f /logd/LogBufferTest.cpp
parent671f39fdf2f4938306aa78c9d12ab28088f73947 (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.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/logd/LogBufferTest.cpp b/logd/LogBufferTest.cpp
index ced4a215f..e651b4fec 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;
}