qcacmn: Move print_to_console api under correct feature flag

Currently print_to_console api is defined based on CONFIG_MCL
feature flag and MCL is not using it, move this api under
WIN specific feature flag QDF_TRACE_PRINT_ENABLE.

Change-Id: I2af2e21eb1cde395568cc1879a2df8c65e56a275
CRs-fixed: 2425040
This commit is contained in:
Ashish Kumar Dhanotiya
2019-03-01 20:40:22 +05:30
committed by nshrivas
parent f1a8f5fbb3
commit affc485658

View File

@@ -2930,13 +2930,14 @@ void qdf_trace_display(void)
} }
qdf_export_symbol(qdf_trace_display); qdf_export_symbol(qdf_trace_display);
#ifdef CONFIG_MCL #ifdef QDF_TRACE_PRINT_ENABLE
#define print_to_console(str)
#else
static inline void print_to_console(char *str_buffer) static inline void print_to_console(char *str_buffer)
{ {
pr_err("%s\n", str_buffer); pr_err("%s\n", str_buffer);
} }
#else
#define print_to_console(str)
#endif #endif
#ifdef MULTI_IF_NAME #ifdef MULTI_IF_NAME