OSDN Git Service

Include what you use
authorDan Willemsen <dwillemsen@google.com>
Fri, 7 Apr 2017 21:15:02 +0000 (14:15 -0700)
committerSteven Moreland <smoreland@google.com>
Tue, 11 Apr 2017 18:22:37 +0000 (18:22 +0000)
This doesn't need utils/Log.h, only log/log.h (and liblog)

Bug: 33241851
Test: m -j libpower
Merged-In: I21b08203fad51902d4a0f6172b4321b8b701ec47
Change-Id: I21b08203fad51902d4a0f6172b4321b8b701ec47

Android.bp
power/power.c

index 283e841..a24f426 100644 (file)
@@ -5,5 +5,5 @@ cc_library {
 
     srcs: ["power/power.c"],
     export_include_dirs: ["include"],
-    shared_libs: ["libcutils"],
+    shared_libs: ["libcutils", "liblog"],
 }
index 368de5b..9250d08 100644 (file)
@@ -26,7 +26,7 @@
 #include <pthread.h>
 
 #define LOG_TAG "power"
-#include <utils/Log.h>
+#include <log/log.h>
 
 enum {
     ACQUIRE_PARTIAL_WAKE_LOCK = 0,