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/ConsumerIr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ir/ConsumerIr.cpp') 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