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: I6db67cee416ebbe0f2c51b2d4dbf2b3a335e972a
CRs-Fixed: 2442689
This commit is contained in:
Vivek
2019-10-24 14:35:49 +05:30
committad av nshrivas
förälder cb37d704f8
incheckning 0c4e20ff82
8 ändrade filer med 41 tillägg och 51 borttagningar

Visa fil

@@ -60,6 +60,10 @@
#define EPPING_MAX_ADAPTERS 1
#define EPPING_LOG(level, args ...) QDF_TRACE(QDF_MODULE_ID_HDD, level, ## args)
#define EPPING_HEX_DUMP(level, data, len) qdf_trace_hex_dump( \
QDF_MODULE_ID_HDD, \
level, \
data, buf_len)
struct epping_cookie {
HTC_PACKET HtcPkt; /* HTC packet wrapper */

Visa fil

@@ -127,24 +127,11 @@ void epping_get_dummy_mac_addr(tSirMacAddr macAddr)
void epping_hex_dump(void *data, int buf_len, const char *str)
{
char *buf = (char *)data;
int i;
EPPING_LOG(QDF_TRACE_LEVEL_FATAL, "%s: E, %s", __func__, str);
printk("%s: E, %s\n", __func__, str);
for (i = 0; (i + 7) < buf_len; i += 8) {
printk("%02x %02x %02x %02x %02x %02x %02x %02x\n",
buf[i],
buf[i + 1],
buf[i + 2],
buf[i + 3],
buf[i + 4], buf[i + 5], buf[i + 6], buf[i + 7]);
}
EPPING_HEX_DUMP(QDF_TRACE_LEVEL_INFO, data, buf_len);
/* Dump the bytes in the last line */
for (; i < buf_len; i++) {
printk("%02x ", buf[i]);
}
printk("\n%s: X %s\n", __func__, str);
EPPING_LOG(QDF_TRACE_LEVEL_FATAL, "%s: X %s", __func__, str);
}
void *epping_get_qdf_ctx(void)

Visa fil

@@ -114,7 +114,8 @@ void epping_rx(void *ctx, HTC_PACKET *pPacket)
if (status != QDF_STATUS_SUCCESS) {
if (status != QDF_STATUS_E_CANCELED) {
printk("%s: RX ERR (%d)\n", __func__, status);
EPPING_LOG(QDF_TRACE_LEVEL_ERROR, "%s: RX ERR (%d)",
__func__, status);
}
qdf_nbuf_free(pktSkb);
return;

Visa fil

@@ -366,8 +366,9 @@ void epping_tx_complete(void *ctx, HTC_PACKET *htc_pkt)
flushing = true;
}
if (status != QDF_STATUS_E_RESOURCES) {
printk("%s() -TX ERROR, status: 0x%x\n",
__func__, status);
EPPING_LOG(QDF_TRACE_LEVEL_ERROR,
"%s() -TX ERROR, status: 0x%x",
__func__, status);
}
} else {
EPPING_LOG(QDF_TRACE_LEVEL_INFO, "%s: OK\n", __func__);