summaryrefslogtreecommitdiff
path: root/uapi/linux/osapi_linux.h
diff options
context:
space:
mode:
authorHouston Hoffman <hhoffman@qca.qualcomm.com>2015-11-17 21:30:21 -0800
committerPrakash Dhavali <pdhavali@codeaurora.org>2015-11-23 13:09:10 -0800
commit04507d3cf4a07f2334fa92bfe04b26188171521b (patch)
tree02857ee9e7c9a47fa8a6838c0b4c2919aadf0b9e /uapi/linux/osapi_linux.h
parentc653bbac922cc3651d48b10ab888fd74cc1335e2 (diff)
qcacld-3.0: Route logging through CDF_TRACE
AR_print and cdf_print macros were not logging to the driver log. Change-Id: I11bc86f6c8ee91866c8e27903eaa15966111ce62 CRs-Fixed: 940770
Diffstat (limited to 'uapi/linux/osapi_linux.h')
-rw-r--r--uapi/linux/osapi_linux.h29
1 files changed, 5 insertions, 24 deletions
diff --git a/uapi/linux/osapi_linux.h b/uapi/linux/osapi_linux.h
index e0420bc12e7f..4fa05bbb57e9 100644
--- a/uapi/linux/osapi_linux.h
+++ b/uapi/linux/osapi_linux.h
@@ -71,31 +71,12 @@
#define A_MEMSET(addr, value, size) memset((addr), (value), (size))
#define A_MEMCMP(addr1, addr2, len) memcmp((addr1), (addr2), (len))
-#if defined(ANDROID_ENV) && defined(CONFIG_ANDROID_LOGGER)
-extern unsigned int enablelogcat;
-extern int android_logger_lv(void *module, int mask);
-enum logidx { LOG_MAIN_IDX = 0 };
-extern int logger_write(const enum logidx idx,
- const unsigned char prio,
- const char __kernel *const tag,
- const char __kernel *const fmt, ...);
-#define A_ANDROID_PRINTF(mask, module, tags, args ...) do { \
- if (enablelogcat) \
- logger_write(LOG_MAIN_IDX, android_logger_lv(module, mask), tags, args); \
- else \
- printk(KERN_ALERT args); \
-} while (0)
-#ifdef DEBUG
-#define A_LOGGER_MODULE_NAME(x) # x
#define A_LOGGER(mask, mod, args ...) \
- A_ANDROID_PRINTF(mask, &GET_ATH_MODULE_DEBUG_VAR_NAME(mod), "ar6k_" A_LOGGER_MODULE_NAME(mod), args);
-#endif
-#define A_PRINTF(args ...) A_ANDROID_PRINTF(ATH_DEBUG_INFO, NULL, "ar6k_driver", args)
-#else
-#define A_LOGGER(mask, mod, args ...) printk(args)
-#define A_PRINTF(args ...) printk(args)
-#endif /* ANDROID */
-#define A_PRINTF_LOG(args ...) printk(args)
+ CDF_TRACE(CDF_MODULE_ID_CDF, CDF_TRACE_LEVEL_ERROR, ## args)
+#define A_PRINTF(args ...) \
+ CDF_TRACE(CDF_MODULE_ID_CDF, CDF_TRACE_LEVEL_ERROR, ## args)
+#define A_PRINTF_LOG(args ...) \
+ CDF_TRACE(CDF_MODULE_ID_CDF, CDF_TRACE_LEVEL_ERROR, ## args)
#define A_SNPRINTF(buf, len, args ...) snprintf (buf, len, args)
/*