diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2016-09-28 10:07:20 -0700 |
|---|---|---|
| committer | Mark Salyzyn <salyzyn@google.com> | 2016-09-30 12:47:05 -0700 |
| commit | 66ce3e08c5632a20ea66bde6dd76397041edf034 (patch) | |
| tree | e77589e0f6c62e8ac1c8faabe2d9dd2934d3ecee /logwrapper | |
| parent | 0dd4431072cce3c62876b728cb20aa5b77b11a8d (diff) | |
| download | core-66ce3e08c5632a20ea66bde6dd76397041edf034.tar.gz core-66ce3e08c5632a20ea66bde6dd76397041edf034.tar.bz2 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 'logwrapper')
| -rw-r--r-- | logwrapper/logwrap.c | 24 | ||||
| -rw-r--r-- | logwrapper/logwrapper.c | 5 |
2 files changed, 14 insertions, 15 deletions
diff --git a/logwrapper/logwrap.c b/logwrapper/logwrap.c index ccbe0bf28..1bfecd69a 100644 --- a/logwrapper/logwrap.c +++ b/logwrapper/logwrap.c @@ -14,24 +14,24 @@ * limitations under the License. */ -#include <string.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <poll.h> -#include <sys/wait.h> -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> #include <errno.h> #include <fcntl.h> #include <libgen.h> -#include <stdbool.h> +#include <poll.h> #include <pthread.h> +#include <stdbool.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/socket.h> +#include <sys/types.h> +#include <sys/wait.h> +#include <unistd.h> -#include <logwrap/logwrap.h> -#include "private/android_filesystem_config.h" -#include "cutils/log.h" +#include <android/log.h> #include <cutils/klog.h> +#include <logwrap/logwrap.h> +#include <private/android_filesystem_config.h> #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) #define MIN(a,b) (((a)<(b))?(a):(b)) diff --git a/logwrapper/logwrapper.c b/logwrapper/logwrapper.c index 55b71c708..28fe530e1 100644 --- a/logwrapper/logwrapper.c +++ b/logwrapper/logwrapper.c @@ -20,10 +20,9 @@ #include <sys/wait.h> #include <unistd.h> -#include <logwrap/logwrap.h> +#include <android/log.h> #include <cutils/klog.h> - -#include "cutils/log.h" +#include <logwrap/logwrap.h> void fatal(const char *msg) { fprintf(stderr, "%s", msg); |
