commit | f9d303435d80161fabb16cdff3b8f2f75f362480 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Nov 30 13:45:34 2016 -0800 |
committer | Yifan Hong <elsk@google.com> | Thu Dec 01 17:47:02 2016 -0800 |
tree | bc9c92a118521958e9f94cfacbc7d282cf20b480 | |
parent | 558727b38dde251978226b147790d0fe5f2a6ce8 [diff] |
Update to use the correct logging library. Test: mma compiles Change-Id: Idb33dea5faaf1a5e54719c2a5a683d2d47e9b8e8
diff --git a/power/1.0/default/Power.cpp b/power/1.0/default/Power.cpp index 5d0593b..6453f33 100644 --- a/power/1.0/default/Power.cpp +++ b/power/1.0/default/Power.cpp
@@ -17,6 +17,7 @@ #define LOG_TAG "android.hardware.power@1.0-impl" #include <hardware/hardware.h> #include <hardware/power.h> +#include <android/log.h> #include "Power.h" namespace android {
diff --git a/power/1.0/vts/functional/power_hidl_hal_test.cpp b/power/1.0/vts/functional/power_hidl_hal_test.cpp index ac56f1a..af6eb86 100644 --- a/power/1.0/vts/functional/power_hidl_hal_test.cpp +++ b/power/1.0/vts/functional/power_hidl_hal_test.cpp
@@ -103,6 +103,6 @@ int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); int status = RUN_ALL_TESTS(); - ALOGI("Test result = %d", status); + LOG(INFO) << "Test result = " << status; return status; }