diff options
author | Sebastiano Barezzi <barezzisebastiano@gmail.com> | 2021-09-15 21:23:26 +0200 |
---|---|---|
committer | Sebastiano Barezzi <barezzisebastiano@gmail.com> | 2021-09-15 21:50:22 +0200 |
commit | ec4147512ce8d3519e8b345370f4425ca7158d35 (patch) | |
tree | 196bbf9fa5fbff6733364758592b1f08c903ed37 /ir/ConsumerIr.cpp | |
parent | a3661377c234e0683b7f2b9af62d8b09531dec13 (diff) |
sdm660-common: ir: Move to LOG(*)
Change-Id: I7a278b5b9618d3235162a07516dff11ee94e378a
Diffstat (limited to 'ir/ConsumerIr.cpp')
-rw-r--r-- | ir/ConsumerIr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |