diff --git a/include/cutils/log.h b/include/cutils/log.h index 0e0248e50..ffb826893 100644 --- a/include/cutils/log.h +++ b/include/cutils/log.h @@ -1 +1 @@ -#include +#include diff --git a/libcutils/ashmem-dev.c b/libcutils/ashmem-dev.c index 09fa09a09..db4ed11d1 100644 --- a/libcutils/ashmem-dev.c +++ b/libcutils/ashmem-dev.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -30,10 +31,8 @@ #include #include -#include - +#include #include -#include #define ASHMEM_DEVICE "/dev/ashmem" diff --git a/libcutils/debugger.c b/libcutils/debugger.c index 3407ec3a1..c6bdd1a6a 100644 --- a/libcutils/debugger.c +++ b/libcutils/debugger.c @@ -14,21 +14,21 @@ * limitations under the License. */ -#include +#define LOG_TAG "DEBUG" + #include +#include #include #include #include -#include #include +#include #include +#include #include #include -#define LOG_TAG "DEBUG" -#include - static int send_request(int sock_fd, void* msg_ptr, size_t msg_len) { int result = 0; if (TEMP_FAILURE_RETRY(write(sock_fd, msg_ptr, msg_len)) != (ssize_t) msg_len) { diff --git a/libcutils/dlmalloc_stubs.c b/libcutils/dlmalloc_stubs.c index 2db473d3a..86fc88066 100644 --- a/libcutils/dlmalloc_stubs.c +++ b/libcutils/dlmalloc_stubs.c @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "log/log.h" +#include "android/log.h" #define UNUSED __attribute__((__unused__)) diff --git a/libcutils/fs.c b/libcutils/fs.c index 3f14de7a5..1622ed927 100644 --- a/libcutils/fs.c +++ b/libcutils/fs.c @@ -21,18 +21,18 @@ #define _ATFILE_SOURCE 1 #define _GNU_SOURCE 1 -#include -#include - -#include -#include -#include -#include +#include #include -#include +#include #include #include -#include +#include +#include +#include +#include + +#include +#include #define ALL_PERMS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) #define BUF_SIZE 64 diff --git a/libcutils/fs_config.c b/libcutils/fs_config.c index 0b0e2c714..3116236ab 100644 --- a/libcutils/fs_config.c +++ b/libcutils/fs_config.c @@ -33,7 +33,7 @@ #include #include -#include +#include #include #include diff --git a/libcutils/native_handle.c b/libcutils/native_handle.c index 61fa38ed4..7f3479d3a 100644 --- a/libcutils/native_handle.c +++ b/libcutils/native_handle.c @@ -16,13 +16,13 @@ #define LOG_TAG "NativeHandle" -#include #include -#include +#include #include +#include #include -#include +#include #include static const int kMaxNativeFds = 1024; diff --git a/libcutils/properties.c b/libcutils/properties.c index 4e46e02f6..5aa63711a 100644 --- a/libcutils/properties.c +++ b/libcutils/properties.c @@ -17,18 +17,18 @@ #define LOG_TAG "properties" // #define LOG_NDEBUG 0 +#include +#include +#include +#include +#include #include #include -#include #include -#include -#include -#include +#include #include -#include -#include -#include +#include int8_t property_get_bool(const char *key, int8_t default_value) { if (!key) { diff --git a/libcutils/qtaguid.c b/libcutils/qtaguid.c index dcd16ef49..ae5a50300 100644 --- a/libcutils/qtaguid.c +++ b/libcutils/qtaguid.c @@ -26,8 +26,8 @@ #include #include +#include #include -#include static const char* CTRL_PROCPATH = "/proc/net/xt_qtaguid/ctrl"; static const int CTRL_MAX_INPUT_LEN = 128; diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index ad5671bf4..2cc72a691 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c @@ -23,8 +23,8 @@ #include #include +#include #include -#include #define UNUSED __attribute__((__unused__)) diff --git a/libcutils/sockets_unix.cpp b/libcutils/sockets_unix.cpp index 8747d696f..d4dca633d 100644 --- a/libcutils/sockets_unix.cpp +++ b/libcutils/sockets_unix.cpp @@ -18,7 +18,7 @@ #include -#include +#include #if defined(__ANDROID__) /* For the socket trust (credentials) check */ diff --git a/libcutils/str_parms.c b/libcutils/str_parms.c index 8dafdedac..6bb7e581c 100644 --- a/libcutils/str_parms.c +++ b/libcutils/str_parms.c @@ -24,10 +24,10 @@ #include #include +#include #include #include #include -#include #define UNUSED __attribute__((unused)) diff --git a/libcutils/tests/PropertiesTest.cpp b/libcutils/tests/PropertiesTest.cpp index f66590bb4..f0cdffdc6 100644 --- a/libcutils/tests/PropertiesTest.cpp +++ b/libcutils/tests/PropertiesTest.cpp @@ -15,16 +15,17 @@ */ #define LOG_TAG "Properties_test" -#include -#include -#include #include -#include -#include -#include +#include +#include +#include + +#include #include +#include +#include namespace android { diff --git a/libcutils/trace-dev.c b/libcutils/trace-dev.c index 099ab458c..b91c7bef3 100644 --- a/libcutils/trace-dev.c +++ b/libcutils/trace-dev.c @@ -14,6 +14,8 @@ * limitations under the License. */ +#define LOG_TAG "cutils-trace" + #include #include #include @@ -27,8 +29,7 @@ #include #include -#define LOG_TAG "cutils-trace" -#include +#include /** * Maximum size of a message that can be logged to the trace buffer.