diff options
-rw-r--r-- | ir/Android.bp | 3 | ||||
-rw-r--r-- | ir/ConsumerIr.cpp | 6 |
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); |