qcacmn: Prevent rate stats from printing in kmsg
Do not print rate statistics on the console or kernel logs. Excessive logging in kernel messages can lead to kernel panic. Change DP_PRINT_STATS to not print in kernel logs. Note that this is an interim solution. Ideally these prints from DP module should be QDF_TRACE_LEVEL_DEBUG and logged to QXDM. Currently DEBUG trace level is disabled for DP module. Change-Id: I54af98eda0dd4ea53ae20f25ced6b03287d8b4e4 CRs-Fixed: 2414635
This commit is contained in:
@@ -68,10 +68,16 @@ while (0)
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_##LVL, \
|
||||
fmt, ## args)
|
||||
|
||||
#define DP_PRINT_STATS(fmt, args ...) \
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL, \
|
||||
fmt, ## args)
|
||||
|
||||
#ifdef CONFIG_MCL
|
||||
/* Stat prints should not go to console or kernel logs.*/
|
||||
#define DP_PRINT_STATS(fmt, args ...)\
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO_HIGH, \
|
||||
fmt, ## args)
|
||||
#else
|
||||
#define DP_PRINT_STATS(fmt, args ...)\
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,\
|
||||
fmt, ## args)
|
||||
#endif
|
||||
#define DP_STATS_INIT(_handle) \
|
||||
qdf_mem_zero(&((_handle)->stats), sizeof((_handle)->stats))
|
||||
|
||||
|
Reference in New Issue
Block a user