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

Commit 5b47ff94 authored by Han Wang's avatar Han Wang
Browse files

KernelCpuUidTimeReader: Decrease log level on non-eng builds

 * It is normal that kernel does not fully support this. Don't panic
   users on non-eng build.

Change-Id: I5004d2b7d4031e924dcca7fd481a1b1788cb7dba
parent 55df8314
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import static com.android.internal.util.Preconditions.checkNotNull;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.os.Build;
import android.os.StrictMode;
import android.os.SystemClock;
import android.util.IntArray;
@@ -431,7 +432,11 @@ public abstract class KernelCpuUidTimeReader<T> {
                CharBuffer buf;
                while ((buf = iter.nextLine()) != null) {
                    if (asLongs(buf, mBuffer) != mBuffer.length) {
                        if (Build.IS_ENG) {
                            Slog.wtf(mTag, "Invalid line: " + buf.toString());
                        } else {
                            Slog.w(mTag, "Invalid line: " + buf.toString());
                        }
                        continue;
                    }
                    final int uid = (int) mBuffer[0];