Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8fc6f18 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

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 2c2337a2.

Change-Id: I1004b44ecc87f5d83d1c4463dd8b1ac16499706d
parent 2c2337a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,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) {