summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorYao Chen2017-12-01 17:48:19 -0600
committerYao Chen2017-12-04 12:07:12 -0600
commit025f05a2256f01edc49ab6ae158a7f2f170bcf67 (patch)
treed1a71e4807496e5450d0ed0900e4e844b1229da8 /liblog
parent5470a12513b423be2b23a94e7214f2a5bd950ad9 (diff)
downloadplatform-system-core-025f05a2256f01edc49ab6ae158a7f2f170bcf67.tar.gz
platform-system-core-025f05a2256f01edc49ab6ae158a7f2f170bcf67.tar.xz
platform-system-core-025f05a2256f01edc49ab6ae158a7f2f170bcf67.zip
make log.tag.stats_log work for stats buffer.
Test: adb shell setprop log.tag.stats_log S And saw the stats logs are silent. Change-Id: I7a9313f5f12029f9b8a8f070de1e1db659675525
Diffstat (limited to 'liblog')
-rw-r--r--liblog/logger_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/logger_write.c b/liblog/logger_write.c
index 589ce8429..d03a2b674 100644
--- a/liblog/logger_write.c
+++ b/liblog/logger_write.c
@@ -270,7 +270,7 @@ static int __write_to_log_daemon(log_id_t log_id, struct iovec* vec, size_t nr)
270 /* If only we could reset downstream logd counter */ 270 /* If only we could reset downstream logd counter */
271 return -EPERM; 271 return -EPERM;
272 } 272 }
273 } else if (log_id == LOG_ID_EVENTS) { 273 } else if (log_id == LOG_ID_EVENTS || log_id == LOG_ID_STATS) {
274 const char* tag; 274 const char* tag;
275 size_t len; 275 size_t len;
276 EventTagMap *m, *f; 276 EventTagMap *m, *f;