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
diff --git a/liblog/logd_reader.c b/liblog/logd_reader.c
index e09872c..99d7fea 100644
--- a/liblog/logd_reader.c
+++ b/liblog/logd_reader.c
@@ -90,7 +90,7 @@
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) {