From c0bb3fe2efccb4df41995dda4590ad8a363bd370 Mon Sep 17 00:00:00 2001 From: Benjamin Schwartz Date: Tue, 28 May 2019 17:09:44 -0700 Subject: [PATCH] statsd: Remove repetitive logging if ODPM is not present Bug: 133674207 Test: adb shell cmd stats pull-source 10038 Test: tested above command on Pixel device without ODPM Change-Id: Iae8fe3c824167dad2659c1f8172f7646d7925d32 --- cmds/statsd/src/external/PowerStatsPuller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/statsd/src/external/PowerStatsPuller.cpp b/cmds/statsd/src/external/PowerStatsPuller.cpp index c56f9a27086e3..b142caca3acce 100644 --- a/cmds/statsd/src/external/PowerStatsPuller.cpp +++ b/cmds/statsd/src/external/PowerStatsPuller.cpp @@ -85,7 +85,6 @@ bool PowerStatsPuller::PullInternal(vector>* data) { std::lock_guard lock(gPowerStatsHalMutex); if (!getPowerStatsHalLocked()) { - ALOGE("power.stats Hal not loaded"); return false; } @@ -116,6 +115,7 @@ bool PowerStatsPuller::PullInternal(vector>* data) { if (gRailInfo.empty()) { ALOGE("power.stats has no rail information"); gPowerStatsExist = false; // No rail info, so never try again. + gPowerStatsHal = nullptr; return false; } }