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
Dieser Commit ist enthalten in:
Debasis Das
2017-01-17 19:32:29 +05:30
committet von qcabuildsw
Ursprung 4c6f38dcd9
Commit f3740946da
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

@@ -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

Datei anzeigen

@@ -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);