1 #if !defined(_LINUX_XLOG_H)
4 #include <linux/linkage.h>
6 enum android_log_priority
{
7 ANDROID_LOG_UNKNOWN
= 0,
8 ANDROID_LOG_DEFAULT
, /* only for SetMinPriority() */
15 ANDROID_LOG_SILENT
, /* only for SetMinPriority(); must be last */
18 #define LOGGER_ALE_ARGS_MAX 16
27 char params
[LOGGER_ALE_ARGS_MAX
];
36 #if defined(HAVE_ALE_FEATURE)
38 int __xlog_ale_printk(int prio
, const struct ale_convert
*convert
, ...);
40 #define xlog_printk(prio, tag, fmt, ...) \
42 static const struct ale_convert ____xlogk_ale_rec____ = \
43 { tag, fmt, __FILE__, prio, 0, "" }; \
44 __xlog_ale_printk(prio, &____xlogk_ale_rec____, \
48 #else /* HAVE_ALE_FEATURE */
50 asmlinkage
int __xlog_printk(const struct xlog_record
*rec
, ...);
52 int __xlog_ksystem_printk(const struct xlog_record
*rec
, ...);
53 #ifdef CONFIG_HAVE_XLOG_FEATURE
54 #define xlog_printk(prio, tag, fmt, ...) \
56 static const struct xlog_record _xlog_rec = \
58 __xlog_printk(&_xlog_rec, ##__VA_ARGS__); \
60 #define xlog_ksystem_printk(prio, tag, fmt, ...) \
62 static const struct xlog_record _xlog_rec = \
64 __xlog_ksystem_printk(&_xlog_rec, ##__VA_ARGS__); \
66 #else /* CONFIG_HAVE_XLOG_FEATURE */
67 #define xlog_printk(prio, tag, fmt, ...) ((void)0)
68 #define xlog_ksystem_printk(prio, tag, fmt, ...) ((void)0)
69 #endif /* CONFIG_HAVE_XLOG_FEATURE */
70 #endif /* HAVE_ALE_FEATURE */