Create stats buffer in logd.
Test: Ran the existing tests in logd, liblog and logcat. Confirmed that the liblog tests are already failing at head. Also that logcat test fails at head.
Change-Id: I65b801bb0b84c9d4983c3f4af6895a366ced0d7a
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp
index 3d56472..5ef220c 100644
--- a/logcat/logcat.cpp
+++ b/logcat/logcat.cpp
@@ -1126,8 +1126,9 @@
}
if (found) continue;
- bool binary =
- !strcmp(name, "events") || !strcmp(name, "security");
+ bool binary = !strcmp(name, "events") ||
+ !strcmp(name, "security") ||
+ !strcmp(name, "stats");
log_device_t* d = new log_device_t(name, binary);
if (dev) {