diff options
author | Yifan Hong <elsk@google.com> | 2016-11-30 13:45:34 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2016-12-01 17:47:02 -0800 |
commit | f9d303435d80161fabb16cdff3b8f2f75f362480 (patch) | |
tree | bc9c92a118521958e9f94cfacbc7d282cf20b480 /light/2.0 | |
parent | 558727b38dde251978226b147790d0fe5f2a6ce8 (diff) | |
download | platform_hardware_interfaces-f9d303435d80161fabb16cdff3b8f2f75f362480.tar.gz platform_hardware_interfaces-f9d303435d80161fabb16cdff3b8f2f75f362480.tar.bz2 platform_hardware_interfaces-f9d303435d80161fabb16cdff3b8f2f75f362480.zip |
Update to use the correct logging library.
Test: mma compiles
Change-Id: Idb33dea5faaf1a5e54719c2a5a683d2d47e9b8e8
Diffstat (limited to 'light/2.0')
-rw-r--r-- | light/2.0/default/Light.cpp | 4 | ||||
-rw-r--r-- | light/2.0/vts/functional/Android.bp | 1 | ||||
-rw-r--r-- | light/2.0/vts/functional/light_hidl_hal_test.cpp | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/light/2.0/default/Light.cpp b/light/2.0/default/Light.cpp index eb1f5598d6..f52c6afe23 100644 --- a/light/2.0/default/Light.cpp +++ b/light/2.0/default/Light.cpp @@ -13,6 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +#define LOG_TAG "light" +#include <android/log.h> + #include "Light.h" namespace android { diff --git a/light/2.0/vts/functional/Android.bp b/light/2.0/vts/functional/Android.bp index c3475a6e09..b290b59ca2 100644 --- a/light/2.0/vts/functional/Android.bp +++ b/light/2.0/vts/functional/Android.bp @@ -19,6 +19,7 @@ cc_test { gtest: true, srcs: ["light_hidl_hal_test.cpp"], shared_libs: [ + "libbase", "liblog", "libutils", "android.hardware.light@2.0", diff --git a/light/2.0/vts/functional/light_hidl_hal_test.cpp b/light/2.0/vts/functional/light_hidl_hal_test.cpp index db67467b62..7c081e9a99 100644 --- a/light/2.0/vts/functional/light_hidl_hal_test.cpp +++ b/light/2.0/vts/functional/light_hidl_hal_test.cpp @@ -44,7 +44,7 @@ public: light = ILight::getService(LIGHT_SERVICE_NAME); ASSERT_NE(light, nullptr); - ALOGI("Test is remote: %d", light->isRemote()); + LOG(INFO) << "Test is remote " << light->isRemote(); } virtual void TearDown() override {} @@ -98,6 +98,6 @@ int main(int argc, char **argv) { ::testing::AddGlobalTestEnvironment(new LightHidlEnvironment); ::testing::InitGoogleTest(&argc, argv); int status = RUN_ALL_TESTS(); - ALOGI("Test result = %d", status); + LOG(INFO) << "Test result = " << status; return status; } |