diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-02-14 23:08:15 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-02-14 23:08:16 +0000 |
commit | 2bc8e322423885114f76b7d7a9f4b0122a696107 (patch) | |
tree | e05824c799a68f1c6944ce389543f8a53508d197 /liblog | |
parent | 42aa9a1415b3dea85cf895e1aee556797d3f9573 (diff) | |
parent | f8fc6f1870ed7ffc6ba343345d49099a8bfad6ce (diff) | |
download | core-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.c | 2 |
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) { |