liblog: use log/log.h when utilizing ALOG macros

Test: compile
Bug: 30465923
Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
This commit is contained in:
Mark Salyzyn 2017-01-10 13:19:54 -08:00
parent cdd7ec12be
commit 30f991f251
70 changed files with 75 additions and 73 deletions

View file

@ -20,7 +20,7 @@
#include <pthread.h>
#include <sys/resource.h>
#include <android/log.h>
#include <log/log.h>
#include <utils/Vector.h>
#include <adf/adf.h>

View file

@ -22,8 +22,8 @@
#include <string.h>
#include <sys/ptrace.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -24,8 +24,8 @@
#include <sys/ptrace.h>
#include <sys/uio.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -31,8 +31,8 @@
#include <memory>
#include <string>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "backtrace.h"

View file

@ -42,12 +42,12 @@
#include <selinux/android.h>
#include <android/log.h>
#include <android-base/file.h>
#include <android-base/unique_fd.h>
#include <cutils/debugger.h>
#include <cutils/properties.h>
#include <cutils/sockets.h>
#include <log/log.h>
#include <private/android_filesystem_config.h>

View file

@ -23,9 +23,9 @@
#include <string>
#include <android/log.h>
#include <android-base/stringprintf.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "elf_utils.h"

View file

@ -22,8 +22,8 @@
#include <string.h>
#include <sys/ptrace.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -22,8 +22,8 @@
#include <string.h>
#include <sys/ptrace.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -29,7 +29,7 @@
#include <vector>
#include <android-base/file.h>
#include <android/log.h>
#include <log/log.h>
#include "open_files_list.h"

View file

@ -27,7 +27,7 @@
#include <sys/wait.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include "signal_sender.h"

View file

@ -21,8 +21,8 @@
#include <string.h>
#include <sys/ptrace.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -18,12 +18,12 @@
#include <errno.h>
#include <stdint.h>
#include <sys/ptrace.h>
#include <string.h>
#include <sys/ptrace.h>
#include <sys/user.h>
#include <android/log.h>
#include <backtrace/Backtrace.h>
#include <log/log.h>
#include "machine.h"
#include "utility.h"

View file

@ -16,7 +16,6 @@
#define LOG_TAG "fingerprintd"
#include <android/log.h>
#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
#include <binder/PermissionCache.h>
@ -25,6 +24,7 @@
#include <hardware/hw_auth_token.h>
#include <keystore/IKeystoreService.h>
#include <keystore/keystore.h> // for error codes
#include <log/log.h>
#include <utils/Log.h>
#include <utils/String16.h>

View file

@ -24,7 +24,6 @@
#include <stdint.h>
#include <unistd.h>
#include <android/log.h>
#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
#include <binder/PermissionCache.h>
@ -33,6 +32,7 @@
#include <hardware/hw_auth_token.h>
#include <keystore/IKeystoreService.h>
#include <keystore/keystore.h> // For error code
#include <log/log.h>
#include <utils/Log.h>
#include <utils/String16.h>

View file

@ -19,7 +19,7 @@
#define LOG_TAG "libbacktrace"
#include <android/log.h>
#include <log/log.h>
// Macro to log the function name along with the warning message.
#define BACK_LOGW(format, ...) \

View file

@ -22,7 +22,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include <backtrace/backtrace_constants.h>
#include <backtrace/BacktraceMap.h>

View file

@ -31,8 +31,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/ashmem.h>
#include <log/log.h>
#define ASHMEM_DEVICE "/dev/ashmem"

View file

@ -25,9 +25,9 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/debugger.h>
#include <cutils/sockets.h>
#include <log/log.h>
static int send_request(int sock_fd, void* msg_ptr, size_t msg_len) {
int result = 0;

View file

@ -16,7 +16,7 @@
#define LOG_TAG "dlmalloc-stubs"
#include "android/log.h"
#include "log/log.h"
#define UNUSED __attribute__((__unused__))

View file

@ -32,8 +32,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/fs.h>
#include <log/log.h>
#define ALL_PERMS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
#define BUF_SIZE 64

View file

@ -33,7 +33,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <android/log.h>
#include <log/log.h>
#include <private/android_filesystem_config.h>
#include <utils/Compat.h>

View file

@ -26,9 +26,9 @@
#include <string.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/properties.h>
#include <cutils/sockets.h>
#include <log/log.h>
int8_t property_get_bool(const char *key, int8_t default_value) {
if (!key) {

View file

@ -26,7 +26,7 @@
#include <string.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include <cutils/qtaguid.h>
static const char* CTRL_PROCPATH = "/proc/net/xt_qtaguid/ctrl";

View file

@ -25,9 +25,9 @@
#include <time.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/android_get_control_file.h>
#include <cutils/sockets.h>
#include <log/log.h>
#include "android_get_control_env.h"

View file

@ -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))

View file

@ -22,8 +22,8 @@
#include <stdlib.h>
#include <string.h>
#include <android/log.h>
#include <diskconfig/diskconfig.h>
#include <log/log.h>
/* start and len are in LBA units */
static void

View file

@ -28,8 +28,8 @@
#include <sys/stat.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/config_utils.h>
#include <log/log.h>
#include <diskconfig/diskconfig.h>

View file

@ -26,7 +26,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include <diskconfig/diskconfig.h>

View file

@ -19,7 +19,7 @@
#include <stdio.h>
#include <android/log.h>
#include <log/log.h>
#include "diskconfig.h"

View file

@ -23,8 +23,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <diskconfig/diskconfig.h>
#include <log/log.h>
struct write_list *
alloc_wl(uint32_t data_len)

View file

@ -29,8 +29,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <ion/ion.h>
#include <log/log.h>
int ion_open()
{

View file

@ -22,8 +22,8 @@
#include <malloc.h>
#include <string.h>
#include <android/log.h>
#include <hardware/memtrack.h>
#include <log/log.h>
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))

View file

@ -19,6 +19,6 @@
#define LOG_TAG "libmemunreachable"
#include <android/log.h>
#include <log/log.h>
#endif // LIBMEMUNREACHABLE_LOG_H_

View file

@ -28,7 +28,7 @@
#include <cstring>
#include <android/log.h>
#include <log/log.h>
namespace android {

View file

@ -19,10 +19,10 @@
#include <dlfcn.h>
#ifdef __ANDROID__
#include "dlext_namespaces.h"
#define LOG_TAG "libnativeloader"
#include "android/log.h"
#include "dlext_namespaces.h"
#include "cutils/properties.h"
#include "log/log.h"
#endif
#include "nativebridge/native_bridge.h"

View file

@ -31,8 +31,8 @@
#include <time.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/properties.h>
#include <log/log.h>
#include <netutils/ifc.h>
#include "dhcpmsg.h"

View file

@ -38,8 +38,8 @@
#ifdef ANDROID
#define LOG_TAG "NetUtils"
#include <android/log.h>
#include <cutils/properties.h>
#include <log/log.h>
#else
#define ALOGD printf
#define ALOGW printf

View file

@ -28,7 +28,7 @@
#ifdef ANDROID
#define LOG_TAG "DHCP"
#include <android/log.h>
#include <log/log.h>
#else
#include <stdio.h>
#define ALOGD printf

View file

@ -27,7 +27,7 @@
#include <string.h>
#include <sys/limits.h>
#include <android/log.h>
#include <log/log.h>
#include <packagelistparser/packagelistparser.h>
#define CLOGE(fmt, ...) \

View file

@ -20,8 +20,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <android/log.h>
#include <cutils/properties.h>
#include <log/log.h>
#include <private/pixelflinger/ggl_context.h>
#include "ARMAssembler.h"

View file

@ -21,7 +21,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <android/log.h>
#include <log/log.h>
#include "ARMAssemblerInterface.h"

View file

@ -32,8 +32,8 @@
#include <stdlib.h>
#include <string.h>
#include <android/log.h>
#include <cutils/properties.h>
#include <log/log.h>
#include <private/pixelflinger/ggl_context.h>
#include "codeflinger/Arm64Assembler.h"

View file

@ -23,8 +23,8 @@
#include <sys/mman.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/ashmem.h>
#include <log/log.h>
#include "CodeCache.h"

View file

@ -23,7 +23,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <android/log.h>
#include <log/log.h>
#include "GGLAssembler.h"

View file

@ -30,8 +30,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <android/log.h>
#include <cutils/properties.h>
#include <log/log.h>
#include <private/pixelflinger/ggl_context.h>
#include "MIPS64Assembler.h"

View file

@ -47,14 +47,13 @@
** functions in ARMAssemblerInterface.cpp so they could be used as static initializers).
*/
#define LOG_TAG "MIPSAssembler"
#include <stdio.h>
#include <stdlib.h>
#include <android/log.h>
#include <cutils/properties.h>
#include <log/log.h>
#include <private/pixelflinger/ggl_context.h>
#include "CodeCache.h"

View file

@ -23,7 +23,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <android/log.h>
#include <log/log.h>
#include "GGLAssembler.h"

View file

@ -20,7 +20,7 @@
#include <assert.h>
#include <stdio.h>
#include <android/log.h>
#include <log/log.h>
#include "GGLAssembler.h"

View file

@ -23,7 +23,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <android/log.h>
#include <log/log.h>
#include "GGLAssembler.h"

View file

@ -22,8 +22,8 @@
#include <stdlib.h>
#include <string.h>
#include <android/log.h>
#include <cutils/memory.h>
#include <log/log.h>
#include "buffer.h"
#include "scanline.h"

View file

@ -21,8 +21,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <android/log.h>
#include <cutils/memory.h>
#include <log/log.h>
#include "trap.h"
#include "picker.h"

View file

@ -18,7 +18,7 @@
#include <stdbool.h>
#include <android/log.h>
#include <log/log.h>
#include <suspend/autosuspend.h>

View file

@ -24,7 +24,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include "autosuspend_ops.h"

View file

@ -26,7 +26,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include "autosuspend_ops.h"

View file

@ -29,7 +29,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include "autosuspend_ops.h"

View file

@ -21,7 +21,7 @@
#include <sys/eventfd.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include <utils/Looper.h>
#include <utils/Timers.h>

View file

@ -19,7 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include <android/log.h>
#include <log/log.h>
#include "SharedBuffer.h"

View file

@ -19,7 +19,7 @@
#include <limits.h>
#include <stddef.h>
#include <android/log.h>
#include <log/log.h>
#include <utils/Unicode.h>
#if defined(_WIN32)

View file

@ -20,7 +20,7 @@
#include <stdlib.h>
#include <string.h>
#include <android/log.h>
#include <log/log.h>
#include <utils/Errors.h>
#include <utils/VectorImpl.h>

View file

@ -26,8 +26,9 @@
#include <memory>
#include <vector>
#include <android/log.h>
#include <android-base/file.h>
#include <log/log.h>
#include <ziparchive/zip_archive.h>
#include <ziparchive/zip_archive_stream_entry.h>
#include <zlib.h>

View file

@ -31,8 +31,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/sockets.h>
#include <log/log.h>
#include <processgroup/processgroup.h>
#ifndef __unused

View file

@ -28,8 +28,8 @@
#include <sys/wait.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/klog.h>
#include <log/log.h>
#include <logwrap/logwrap.h>
#include <private/android_filesystem_config.h>

View file

@ -20,8 +20,8 @@
#include <sys/wait.h>
#include <unistd.h>
#include <android/log.h>
#include <cutils/klog.h>
#include <log/log.h>
#include <logwrap/logwrap.h>
void fatal(const char *msg) {

View file

@ -19,9 +19,10 @@
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <type_traits>
#include <android/log.h>
#include <log/log.h>
#include "trusty_gatekeeper.h"
#include "trusty_gatekeeper_ipc.h"

View file

@ -22,7 +22,7 @@
#include <string.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include <trusty/tipc.h>
#include "trusty_gatekeeper_ipc.h"

View file

@ -27,9 +27,9 @@
#include <type_traits>
#include <android/log.h>
#include <hardware/keymaster0.h>
#include <keymaster/authorization_set.h>
#include <log/log.h>
#include "trusty_keymaster_device.h"
#include "trusty_keymaster_ipc.h"

View file

@ -23,7 +23,7 @@
#include <string.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include <trusty/tipc.h>
#include "trusty_keymaster_ipc.h"

View file

@ -25,7 +25,7 @@
#include <sys/ioctl.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log.h>
#include "tipc_ioctl.h"

View file

@ -22,8 +22,8 @@
#include <string.h>
#include <unistd.h>
#include <android/log.h>
#include <hardware/nvram.h>
#include <log/log.h>
#include <trusty/tipc.h>
#include <nvram/messages/blob.h>

View file

@ -23,7 +23,7 @@
#include <string.h>
#include <sys/uio.h>
#include <android/log.h>
#include <log/log.h>
#include <trusty/tipc.h>
#include <trusty/lib/storage.h>