diff --git a/qdf/inc/qdf_types.h b/qdf/inc/qdf_types.h index 1c3893d9b7e3..ab1fc4b412b6 100644 --- a/qdf/inc/qdf_types.h +++ b/qdf/inc/qdf_types.h @@ -484,6 +484,10 @@ typedef enum { * @QDF_TRACE_LEVEL_INFO_LOW: Low level operational messages that require * no action * @QDF_TRACE_LEVEL_DEBUG: Information useful to developers for debugging + * @QDF_TRACE_LEVEL_TRACE: Indicates trace level for automation scripts, + * whenever there is a context switch in driver, one + * print using this trace level will be added with + * the help of qdf_trace api. * @QDF_TRACE_LEVEL_ALL: All trace levels * @QDF_TRACE_LEVEL_MAX: Max trace level */ @@ -497,6 +501,7 @@ typedef enum { QDF_TRACE_LEVEL_INFO_MED, QDF_TRACE_LEVEL_INFO_LOW, QDF_TRACE_LEVEL_DEBUG, + QDF_TRACE_LEVEL_TRACE, QDF_TRACE_LEVEL_ALL, QDF_TRACE_LEVEL_MAX } QDF_TRACE_LEVEL; diff --git a/qdf/linux/src/qdf_trace.c b/qdf/linux/src/qdf_trace.c index b2e77697be62..8cc840195b06 100644 --- a/qdf/linux/src/qdf_trace.c +++ b/qdf/linux/src/qdf_trace.c @@ -2913,11 +2913,12 @@ void qdf_trace_msg_cmn(unsigned int idx, [QDF_TRACE_LEVEL_INFO_MED] = "IM", [QDF_TRACE_LEVEL_INFO_LOW] = "IL", [QDF_TRACE_LEVEL_DEBUG] = "D", + [QDF_TRACE_LEVEL_TRACE] = "T", [QDF_TRACE_LEVEL_ALL] = "" }; /* print the prefix string into the string buffer... */ n = scnprintf(str_buffer, QDF_TRACE_BUFFER_SIZE, - "%s: [%d:%2s:%s] ", qdf_trace_wlan_modname(), + "%s: [%d:%s:%s] ", qdf_trace_wlan_modname(), in_interrupt() ? 0 : current->pid, VERBOSE_STR[verbose], g_qdf_category_name[category].category_name_str);