Browse Source

qcacmn: Enable Log Level for QDF_TRACE prints

The WIN-specific macro for QDF_TRACE should use the
log-level.Currently,it is defined to printk which
results in flooding the console with debug prints of all
levels.

CR's Fixed: 1112458
Change-Id: Ic63c695fdc667af02595f9217f1bf365f76317f0
Debasis Das 8 years ago
parent
commit
f3740946da
2 changed files with 4 additions and 4 deletions
  1. 2 2
      qdf/linux/src/i_qdf_trace.h
  2. 2 2
      qdf/linux/src/qdf_mem.c

+ 2 - 2
qdf/linux/src/i_qdf_trace.h

@@ -70,8 +70,8 @@
 				printk("\n"); \
 			} \
 		} while (0)
-#define QDF_TRACE(x, y, args...) printk(args)
-
+#define QDF_TRACE(x, log_level, args...) \
+	qdf_trace(log_level, args)
 #endif /* CONFIG_MCL */
 
 #define QDF_ENABLE_TRACING

+ 2 - 2
qdf/linux/src/qdf_mem.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -81,7 +81,7 @@ struct s_qdf_mem_struct {
 /* Preprocessor Definitions and Constants */
 #define QDF_GET_MEMORY_TIME_THRESHOLD 300
 
-int qdf_dbg_mask;
+int qdf_dbg_mask = QDF_TRACE_LEVEL_NONE;
 qdf_declare_param(qdf_dbg_mask, int);
 EXPORT_SYMBOL(qdf_dbg_mask);