summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2016-09-28 12:07:20 -0500
committerMark Salyzyn2016-09-30 14:47:05 -0500
commit66ce3e08c5632a20ea66bde6dd76397041edf034 (patch)
treee77589e0f6c62e8ac1c8faabe2d9dd2934d3ecee /libsuspend
parent0dd4431072cce3c62876b728cb20aa5b77b11a8d (diff)
downloadplatform-system-core-66ce3e08c5632a20ea66bde6dd76397041edf034.tar.gz
platform-system-core-66ce3e08c5632a20ea66bde6dd76397041edf034.tar.xz
platform-system-core-66ce3e08c5632a20ea66bde6dd76397041edf034.zip
system/core Replace cutils/log.h with android/log.h
Should use android/log.h instead of cutils/log.h as a good example to all others. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I2c9cbbbd64d8dccf2d44356361d9742e4a9b9031
Diffstat (limited to 'libsuspend')
-rw-r--r--libsuspend/autosuspend.c5
-rw-r--r--libsuspend/autosuspend_autosleep.c5
-rw-r--r--libsuspend/autosuspend_earlysuspend.c7
-rw-r--r--libsuspend/autosuspend_wakeup_count.c7
4 files changed, 14 insertions, 10 deletions
diff --git a/libsuspend/autosuspend.c b/libsuspend/autosuspend.c
index edd100711..64d1bfc74 100644
--- a/libsuspend/autosuspend.c
+++ b/libsuspend/autosuspend.c
@@ -14,10 +14,11 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17#define LOG_TAG "libsuspend"
18
17#include <stdbool.h> 19#include <stdbool.h>
18 20
19#define LOG_TAG "libsuspend" 21#include <android/log.h>
20#include <cutils/log.h>
21 22
22#include <suspend/autosuspend.h> 23#include <suspend/autosuspend.h>
23 24
diff --git a/libsuspend/autosuspend_autosleep.c b/libsuspend/autosuspend_autosleep.c
index 7262cc7e8..97109ac2c 100644
--- a/libsuspend/autosuspend_autosleep.c
+++ b/libsuspend/autosuspend_autosleep.c
@@ -14,6 +14,8 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17#define LOG_TAG "libsuspend"
18
17#include <errno.h> 19#include <errno.h>
18#include <fcntl.h> 20#include <fcntl.h>
19#include <stddef.h> 21#include <stddef.h>
@@ -22,8 +24,7 @@
22#include <sys/types.h> 24#include <sys/types.h>
23#include <unistd.h> 25#include <unistd.h>
24 26
25#define LOG_TAG "libsuspend" 27#include <android/log.h>
26#include <cutils/log.h>
27 28
28#include "autosuspend_ops.h" 29#include "autosuspend_ops.h"
29 30
diff --git a/libsuspend/autosuspend_earlysuspend.c b/libsuspend/autosuspend_earlysuspend.c
index 3793a699e..9519e51ea 100644
--- a/libsuspend/autosuspend_earlysuspend.c
+++ b/libsuspend/autosuspend_earlysuspend.c
@@ -14,18 +14,19 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17#define LOG_TAG "libsuspend"
18
17#include <errno.h> 19#include <errno.h>
18#include <fcntl.h> 20#include <fcntl.h>
19#include <pthread.h> 21#include <pthread.h>
20#include <stdbool.h> 22#include <stdbool.h>
21#include <stddef.h> 23#include <stddef.h>
22#include <string.h> 24#include <string.h>
23#include <sys/types.h>
24#include <sys/stat.h> 25#include <sys/stat.h>
26#include <sys/types.h>
25#include <unistd.h> 27#include <unistd.h>
26 28
27#define LOG_TAG "libsuspend" 29#include <android/log.h>
28#include <cutils/log.h>
29 30
30#include "autosuspend_ops.h" 31#include "autosuspend_ops.h"
31 32
diff --git a/libsuspend/autosuspend_wakeup_count.c b/libsuspend/autosuspend_wakeup_count.c
index 23a029027..d3fb45fcf 100644
--- a/libsuspend/autosuspend_wakeup_count.c
+++ b/libsuspend/autosuspend_wakeup_count.c
@@ -14,6 +14,9 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17#define LOG_TAG "libsuspend"
18//#define LOG_NDEBUG 0
19
17#include <errno.h> 20#include <errno.h>
18#include <fcntl.h> 21#include <fcntl.h>
19#include <pthread.h> 22#include <pthread.h>
@@ -25,9 +28,7 @@
25#include <sys/types.h> 28#include <sys/types.h>
26#include <unistd.h> 29#include <unistd.h>
27 30
28#define LOG_TAG "libsuspend" 31#include <android/log.h>
29//#define LOG_NDEBUG 0
30#include <cutils/log.h>
31 32
32#include "autosuspend_ops.h" 33#include "autosuspend_ops.h"
33 34