From f93b4006e0b1afdf304b39d13f96d9766ec14a30 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Wed, 3 Jun 2020 09:23:49 -0700 Subject: 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 --- logd/LogBufferTest.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'logd/LogBufferTest.cpp') 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; } -- cgit v1.2.3