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

Commit 281fa200 authored by Evan Ralston's avatar Evan Ralston Committed by android-build-merger
Browse files

Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL"

am: 9fcabf73

Change-Id: I6a07a22d727e2e5a886bf6c717d787273feb3226
parents f5951632 9fcabf73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ LIBLOG_HIDDEN struct android_log_transport_read logdLoggerRead = {

static int logdAvailable(log_id_t logId)
{
    if (logId > LOG_ID_KERNEL) {
    if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) {
        return -EINVAL;
    }
    if (logId == LOG_ID_SECURITY) {