qcacmn: Replace printk with qdf_nofl_info

Replace printk with qdf_nofl_info in qdf folder.
So if we wish to change from printing on console
to other location, based on a logging daemon, we
can do that by only changing at the implementation
of QDF print API's

Change-Id: I27fa7dbd6081c2869d1f1782f34cdd0bb5a02fb4
CRs-Fixed: 2442689
This commit is contained in:
Vivek
2019-08-27 11:32:27 +05:30
parent 0ebbf5a1de
commit 7a14b44b75
3 changed files with 6 additions and 6 deletions

View File

@@ -27,6 +27,7 @@
/* Include Files */
#include <qdf_types.h>
#include <i_qdf_mem.h>
#include <i_qdf_trace.h>
#define QDF_CACHE_LINE_SZ __qdf_cache_line_sz
@@ -614,7 +615,7 @@ static inline void qdf_update_mem_map_table(qdf_device_t osdev,
uint32_t mem_size)
{
if (!mem_info) {
__qdf_print("%s: NULL mem_info\n", __func__);
qdf_nofl_err("%s: NULL mem_info", __func__);
return;
}
@@ -811,7 +812,7 @@ static inline void qdf_mem_shared_mem_free(qdf_device_t osdev,
qdf_shared_mem_t *shared_mem)
{
if (!shared_mem) {
__qdf_print("%s: NULL shared mem struct passed\n",
qdf_nofl_err("%s: NULL shared mem struct passed",
__func__);
return;
}

View File

@@ -54,7 +54,7 @@
do { \
if (!spin_is_locked(x)) { \
WARN_ON(1); \
printk(KERN_EMERG " %s:%d unlock addr=%pK, %s \n", __func__, __LINE__, x, \
qdf_info("unlock addr=%pK, %s", x, \
!spin_is_locked(x) ? "Not locked" : ""); \
} \
spin_unlock_bh(x); \

View File

@@ -329,7 +329,6 @@ enum __qdf_net_wireless_evcode {
__QDF_CUSTOM_PUSH_BUTTON = IWEVCUSTOM,
};
#define __qdf_print printk
#define __qdf_vprint vprintk
#define __qdf_snprint snprintf
#define __qdf_vsnprint vsnprintf