summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2017-02-14 15:00:57 -0600
committerMark Salyzyn2017-02-14 15:00:57 -0600
commitf8fc6f1870ed7ffc6ba343345d49099a8bfad6ce (patch)
tree94ed007feca2d59bd1dbc986b70f952b53a79de4 /liblog/logd_reader.c
parent2c2337a293dfcd7a144996048e48c2a54b44c5f8 (diff)
downloadplatform-system-core-f8fc6f1870ed7ffc6ba343345d49099a8bfad6ce.tar.gz
platform-system-core-f8fc6f1870ed7ffc6ba343345d49099a8bfad6ce.tar.xz
platform-system-core-f8fc6f1870ed7ffc6ba343345d49099a8bfad6ce.zip
Revert "Check against LOG_ID_MAX instead of LOG_ID_KERNEL"
causes a regression, logcat -b kernel does not work. Check should have landed in logd_writer.c This reverts commit 2c2337a293dfcd7a144996048e48c2a54b44c5f8. Change-Id: I1004b44ecc87f5d83d1c4463dd8b1ac16499706d
Diffstat (limited to 'liblog/logd_reader.c')
-rw-r--r--liblog/logd_reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/logd_reader.c b/liblog/logd_reader.c
index e09872cfa..99d7fea3b 100644
--- a/liblog/logd_reader.c
+++ b/liblog/logd_reader.c
@@ -90,7 +90,7 @@ LIBLOG_HIDDEN struct android_log_transport_read logdLoggerRead = {
90 90
91static int logdAvailable(log_id_t logId) 91static int logdAvailable(log_id_t logId)
92{ 92{
93 if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) { 93 if (logId > LOG_ID_KERNEL) {
94 return -EINVAL; 94 return -EINVAL;
95 } 95 }
96 if (logId == LOG_ID_SECURITY) { 96 if (logId == LOG_ID_SECURITY) {