summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Barezzi <barezzisebastiano@gmail.com>2021-09-15 21:23:26 +0200
committerSebastiano Barezzi <barezzisebastiano@gmail.com>2021-09-15 21:50:22 +0200
commitec4147512ce8d3519e8b345370f4425ca7158d35 (patch)
tree196bbf9fa5fbff6733364758592b1f08c903ed37
parenta3661377c234e0683b7f2b9af62d8b09531dec13 (diff)
sdm660-common: ir: Move to LOG(*)
Change-Id: I7a278b5b9618d3235162a07516dff11ee94e378a
-rw-r--r--ir/Android.bp3
-rw-r--r--ir/ConsumerIr.cpp6
2 files changed, 4 insertions, 5 deletions
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 <log/log.h>
+#include <android-base/logging.h>
#include <hardware/hardware.h>
#include <hardware/consumerir.h>
@@ -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);