diff options
| author | Houston Hoffman <hhoffman@codeaurora.org> | 2016-12-16 14:40:41 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-04 14:53:54 -0800 |
| commit | bfd89bb2249e936c0aecaaf1c5a283f20a0ee508 (patch) | |
| tree | 6d194d53bae8c7b911d6dfc72bb21afdc471ac09 | |
| parent | 65f8990e1bc9e7dd417cfe18d13c43a330ef1133 (diff) | |
qcacmn: make qdf_print useable without qdf_trace.h (2)
qdf_trace prototype needs to be defined as well.
note: i_qdf_trace.h is still needed for qdf_print
to be used, but we have removed dependencies of
i_qdf_trace.h on other include files (so this is fine).
Change-Id: I01052d00c1619e4847de702a687554badd47882f
CRs-Fixed: 1100505
| -rw-r--r-- | qdf/inc/qdf_trace.h | 21 | ||||
| -rw-r--r-- | qdf/inc/qdf_types.h | 23 | ||||
| -rw-r--r-- | qdf/linux/src/i_qdf_trace.h | 3 |
3 files changed, 23 insertions, 24 deletions
diff --git a/qdf/inc/qdf_trace.h b/qdf/inc/qdf_trace.h index 6cbf4e57c452..375257cdb34d 100644 --- a/qdf/inc/qdf_trace.h +++ b/qdf/inc/qdf_trace.h @@ -438,27 +438,6 @@ void qdf_dp_trace_clear_buffer(void) #endif -/** - * qdf_trace_msg()- logging API - * @module: Module identifier. A member of the QDF_MODULE_ID enumeration that - * identifies the module issuing the trace message. - * @level: Trace level. A member of the QDF_TRACE_LEVEL enumeration indicating - * the severity of the condition causing the trace message to be issued. - * More severe conditions are more likely to be logged. - * @str_format: Format string. The message to be logged. This format string - * contains printf-like replacement parameters, which follow this - * parameter in the variable argument list. - * - * Users wishing to add tracing information to their code should use - * QDF_TRACE. QDF_TRACE() will compile into a call to qdf_trace_msg() when - * tracing is enabled. - * - * Return: nothing - * - */ -void __printf(3, 4) qdf_trace_msg(QDF_MODULE_ID module, QDF_TRACE_LEVEL level, - char *str_format, ...); - void qdf_trace_hex_dump(QDF_MODULE_ID module, QDF_TRACE_LEVEL level, void *data, int buf_len); diff --git a/qdf/inc/qdf_types.h b/qdf/inc/qdf_types.h index 58d6ebf34a9f..a489f9d0c895 100644 --- a/qdf/inc/qdf_types.h +++ b/qdf/inc/qdf_types.h @@ -360,7 +360,30 @@ enum tQDF_GLOBAL_CON_MODE { #define QDF_IS_EPPING_ENABLED(mode) (mode == QDF_GLOBAL_EPPING_MODE) + #ifdef CONFIG_MCL +/** + * qdf_trace_msg()- logging API + * @module: Module identifier. A member of the QDF_MODULE_ID enumeration that + * identifies the module issuing the trace message. + * @level: Trace level. A member of the QDF_TRACE_LEVEL enumeration indicating + * the severity of the condition causing the trace message to be issued. + * More severe conditions are more likely to be logged. + * @str_format: Format string. The message to be logged. This format string + * contains printf-like replacement parameters, which follow this + * parameter in the variable argument list. + * + * Users wishing to add tracing information to their code should use + * QDF_TRACE. QDF_TRACE() will compile into a call to qdf_trace_msg() when + * tracing is enabled. + * + * Return: nothing + * + * implemented in qdf_trace.c + */ +void __printf(3, 4) qdf_trace_msg(QDF_MODULE_ID module, QDF_TRACE_LEVEL level, + char *str_format, ...); + #define qdf_print(args...) \ QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR, ## args) diff --git a/qdf/linux/src/i_qdf_trace.h b/qdf/linux/src/i_qdf_trace.h index 124ebfb2c64b..7ef3fc3c95c8 100644 --- a/qdf/linux/src/i_qdf_trace.h +++ b/qdf/linux/src/i_qdf_trace.h @@ -40,9 +40,6 @@ #endif #ifdef CONFIG_MCL -/* Include Files */ -#include <cds_packet.h> - /* QDF_TRACE is the macro invoked to add trace messages to code. See the * documenation for qdf_trace_msg() for the parameters etc. for this function. * |
