diff options
author | Mark Salyzyn <salyzyn@google.com> | 2016-09-30 22:12:45 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-09-30 22:12:45 +0000 |
commit | 9fd2eaf827ffd3cc600a2851b74a1bcc52d19c70 (patch) | |
tree | 54df91aa122bcd3fdc4a27ff10a8fe0f8a68361d | |
parent | c528ac0fe81d334324cffb43b3ec3183042bb1c3 (diff) | |
parent | f56fce02407b876338611c638d7f4b7fdc0f5d24 (diff) | |
download | system_core-9fd2eaf827ffd3cc600a2851b74a1bcc52d19c70.tar.gz system_core-9fd2eaf827ffd3cc600a2851b74a1bcc52d19c70.tar.bz2 system_core-9fd2eaf827ffd3cc600a2851b74a1bcc52d19c70.zip |
libcutils: Replace cutils/log.h with android/log.h am: 23ed4c242a
am: f56fce0240
Change-Id: I588c3a252594e1ecd4b34242217cf23c84e4af67
-rw-r--r-- | include/cutils/log.h | 2 | ||||
-rw-r--r-- | libcutils/ashmem-dev.c | 5 | ||||
-rw-r--r-- | libcutils/debugger.c | 10 | ||||
-rw-r--r-- | libcutils/dlmalloc_stubs.c | 2 | ||||
-rw-r--r-- | libcutils/fs.c | 18 | ||||
-rw-r--r-- | libcutils/fs_config.c | 2 | ||||
-rw-r--r-- | libcutils/native_handle.c | 6 | ||||
-rw-r--r-- | libcutils/properties.c | 14 | ||||
-rw-r--r-- | libcutils/qtaguid.c | 2 | ||||
-rw-r--r-- | libcutils/sched_policy.c | 2 | ||||
-rw-r--r-- | libcutils/sockets_unix.cpp | 2 | ||||
-rw-r--r-- | libcutils/str_parms.c | 2 | ||||
-rw-r--r-- | libcutils/tests/PropertiesTest.cpp | 11 | ||||
-rw-r--r-- | libcutils/trace-dev.c | 5 |
14 files changed, 42 insertions, 41 deletions
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 <log/log.h> +#include <android/log.h> 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 <errno.h> #include <fcntl.h> +#include <linux/ashmem.h> #include <pthread.h> #include <string.h> #include <sys/ioctl.h> @@ -30,10 +31,8 @@ #include <sys/types.h> #include <unistd.h> -#include <linux/ashmem.h> - +#include <android/log.h> #include <cutils/ashmem.h> -#include <log/log.h> #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 <stdbool.h> +#define LOG_TAG "DEBUG" + #include <fcntl.h> +#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/types.h> #include <sys/socket.h> +#include <sys/types.h> #include <unistd.h> +#include <android/log.h> #include <cutils/debugger.h> #include <cutils/sockets.h> -#define LOG_TAG "DEBUG" -#include <log/log.h> - 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 <cutils/fs.h> -#include <cutils/log.h> - -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -#include <unistd.h> +#include <dirent.h> #include <errno.h> -#include <string.h> +#include <fcntl.h> #include <limits.h> #include <stdlib.h> -#include <dirent.h> +#include <string.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <unistd.h> + +#include <android/log.h> +#include <cutils/fs.h> #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 <sys/stat.h> #include <sys/types.h> -#include <log/log.h> +#include <android/log.h> #include <private/android_filesystem_config.h> #include <utils/Compat.h> 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 <stdint.h> #include <errno.h> -#include <string.h> +#include <stdint.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> -#include <cutils/log.h> +#include <android/log.h> #include <cutils/native_handle.h> 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 <assert.h> +#include <ctype.h> +#include <errno.h> +#include <inttypes.h> +#include <stdbool.h> #include <stdlib.h> #include <string.h> -#include <ctype.h> #include <unistd.h> -#include <cutils/sockets.h> -#include <errno.h> -#include <assert.h> +#include <android/log.h> #include <cutils/properties.h> -#include <stdbool.h> -#include <inttypes.h> -#include <log/log.h> +#include <cutils/sockets.h> 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 <string.h> #include <unistd.h> +#include <android/log.h> #include <cutils/qtaguid.h> -#include <log/log.h> 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 <string.h> #include <unistd.h> +#include <android/log.h> #include <cutils/sched_policy.h> -#include <log/log.h> #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 <sys/uio.h> -#include <log/log.h> +#include <android/log.h> #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 <stdlib.h> #include <string.h> +#include <android/log.h> #include <cutils/hashmap.h> #include <cutils/memory.h> #include <cutils/str_parms.h> -#include <log/log.h> #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 <cutils/log.h> -#include <gtest/gtest.h> -#include <cutils/properties.h> #include <limits.h> -#include <string> -#include <sstream> + #include <iostream> +#include <sstream> +#include <string> +#include <android/log.h> #include <android-base/macros.h> +#include <cutils/properties.h> +#include <gtest/gtest.h> 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 <errno.h> #include <fcntl.h> #include <limits.h> @@ -27,8 +29,7 @@ #include <cutils/properties.h> #include <cutils/trace.h> -#define LOG_TAG "cutils-trace" -#include <log/log.h> +#include <android/log.h> /** * Maximum size of a message that can be logged to the trace buffer. |