summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-02-14 23:08:15 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-14 23:08:16 +0000
commit2bc8e322423885114f76b7d7a9f4b0122a696107 (patch)
treee05824c799a68f1c6944ce389543f8a53508d197 /liblog
parent42aa9a1415b3dea85cf895e1aee556797d3f9573 (diff)
parentf8fc6f1870ed7ffc6ba343345d49099a8bfad6ce (diff)
downloadcore-2bc8e322423885114f76b7d7a9f4b0122a696107.tar.gz
core-2bc8e322423885114f76b7d7a9f4b0122a696107.tar.bz2
core-2bc8e322423885114f76b7d7a9f4b0122a696107.zip
Merge "Revert "Check against LOG_ID_MAX instead of LOG_ID_KERNEL""
Diffstat (limited to 'liblog')
-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 = {
static int logdAvailable(log_id_t logId)
{
- if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) {
+ if (logId > LOG_ID_KERNEL) {
return -EINVAL;
}
if (logId == LOG_ID_SECURITY) {