From ec4147512ce8d3519e8b345370f4425ca7158d35 Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Wed, 15 Sep 2021 21:23:26 +0200 Subject: sdm660-common: ir: Move to LOG(*) Change-Id: I7a278b5b9618d3235162a07516dff11ee94e378a --- ir/Android.bp | 3 +-- ir/ConsumerIr.cpp | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'ir') diff --git a/ir/Android.bp b/ir/Android.bp index d778f36..f352f20 100644 --- a/ir/Android.bp +++ b/ir/Android.bp @@ -12,7 +12,7 @@ cc_library_shared { shared_libs: [ "libhidlbase", "libhardware", - "liblog", + "libbase", "libutils", "android.hardware.ir@1.0", ], @@ -26,7 +26,6 @@ cc_binary { init_rc: ["android.hardware.ir@1.0-service.rc"], srcs: ["service.cpp"], shared_libs: [ - "liblog", "libhardware", "libhidlbase", "libutils", diff --git a/ir/ConsumerIr.cpp b/ir/ConsumerIr.cpp index 25eecb9..3e7ea35 100644 --- a/ir/ConsumerIr.cpp +++ b/ir/ConsumerIr.cpp @@ -6,7 +6,7 @@ #define LOG_TAG "ConsumerIrService" -#include +#include #include #include @@ -59,12 +59,12 @@ IConsumerIr* HIDL_FETCH_IConsumerIr(const char * /*name*/) { int ret = hw_get_module(CONSUMERIR_HARDWARE_MODULE_ID, &hw_module); if (ret != 0) { - ALOGE("hw_get_module %s failed: %d", CONSUMERIR_HARDWARE_MODULE_ID, ret); + LOG(ERROR) << "hw_get_module " CONSUMERIR_HARDWARE_MODULE_ID " failed: " << ret; return nullptr; } ret = hw_module->methods->open(hw_module, CONSUMERIR_TRANSMITTER, (hw_device_t **) &dev); if (ret < 0) { - ALOGE("Can't open consumer IR transmitter, error: %d", ret); + LOG(ERROR) << "Can't open consumer IR transmitter, error: " << ret; return nullptr; } return new ConsumerIr(dev); -- cgit v1.2.3