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

Commit 581d0a7d authored by Kevin Brodsky's avatar Kevin Brodsky
Browse files

Debug: do not log memtrack_proc_get() failure

memtrack is an optional HAL, and memtrack_proc_get() will fail if
the HAL is not available on the device. Remove the warning to stop
flooding logcat every time read_memtrack_memory() is called.

Test: boot aosp_x86_64 and check logcat
Change-Id: I31b0e9bb3a881460bb4f2461dddb0e252763c609
parent 09a87d3f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -193,7 +193,8 @@ static int read_memtrack_memory(struct memtrack_proc* p, int pid,
{
    int err = memtrack_proc_get(p, pid);
    if (err != 0) {
        ALOGW("failed to get memory consumption info: %d", err);
        // The memtrack HAL may not be available, do not log to avoid flooding
        // logcat.
        return err;
    }