2 * Copyright (C) 2014-2015 Intel Corporation.
11 #include <linux/limits.h>
18 #define ALOGE(...) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
22 #define ALOGI(...) ((void)ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__))
26 #define ALOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__))
30 #define ALOGW(...) ((void)ALOG(LOG_WARN, LOG_TAG, __VA_ARGS__))
34 #define ALOGV(...) ((void)ALOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__))
38 #define ALOG(priority, tag, ...) \
39 LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
43 #define LOG_PRI(priority, tag, ...) \
44 android_printLog(priority, tag, __VA_ARGS__)
47 #define android_printLog(prio, tag, fmt...) \
48 __android_log_print(prio, tag, fmt)
50 typedef enum android_LogPriority {
51 ANDROID_LOG_UNKNOWN = 0,
52 ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */
59 ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */
60 } android_LogPriority;
62 extern int __android_log_print(int prio, const char *tag, const char *fmt, ...);