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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user