summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot2017-02-14 17:08:15 -0600
committerGerrit Code Review2017-02-14 17:08:16 -0600
commit2bc8e322423885114f76b7d7a9f4b0122a696107 (patch)
treee05824c799a68f1c6944ce389543f8a53508d197 /liblog/logd_reader.c
parent42aa9a1415b3dea85cf895e1aee556797d3f9573 (diff)
parentf8fc6f1870ed7ffc6ba343345d49099a8bfad6ce (diff)
downloadplatform-system-core-2bc8e322423885114f76b7d7a9f4b0122a696107.tar.gz
platform-system-core-2bc8e322423885114f76b7d7a9f4b0122a696107.tar.xz
platform-system-core-2bc8e322423885114f76b7d7a9f4b0122a696107.zip
Merge "Revert "Check against LOG_ID_MAX instead of LOG_ID_KERNEL""
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 9411f36cb..ccc7da8ae 100644
--- a/liblog/logd_reader.c
+++ b/liblog/logd_reader.c
@@ -91,7 +91,7 @@ LIBLOG_HIDDEN struct android_log_transport_read logdLoggerRead = {
91 91
92static int logdAvailable(log_id_t logId) 92static int logdAvailable(log_id_t logId)
93{ 93{
94 if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) { 94 if (logId > LOG_ID_KERNEL) {
95 return -EINVAL; 95 return -EINVAL;
96 } 96 }
97 if (logId == LOG_ID_SECURITY) { 97 if (logId == LOG_ID_SECURITY) {