[PATCH 36/40] staging: rtl8723bs: replace RT_TRACE with public printk wrappers in os_dep/recv_linux.c

From: Fabio Aiuto
Date: Wed Mar 31 2021 - 05:43:07 EST


replace private macro RT_TRACE for tracing with in-kernel
pr_* printk wrappers

Signed-off-by: Fabio Aiuto <fabioaiuto83@xxxxxxxxx>
---
drivers/staging/rtl8723bs/os_dep/recv_linux.c | 22 ++++++++++++++-----
1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
index fbdbcd04d44a..5e1ee9783c32 100644
--- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
@@ -202,13 +202,19 @@ int rtw_recv_indicatepkt(struct adapter *padapter, union recv_frame *precv_frame

skb = precv_frame->u.hdr.pkt;
if (skb == NULL) {
- RT_TRACE(_module_recv_osdep_c_, _drv_err_, ("rtw_recv_indicatepkt():skb == NULL something wrong!!!!\n"));
+ pr_err("%s %s:skb == NULL something wrong!!!!\n",
+ DRIVER_PREFIX, __func__);
goto _recv_indicatepkt_drop;
}

- RT_TRACE(_module_recv_osdep_c_, _drv_info_, ("rtw_recv_indicatepkt():skb != NULL !!!\n"));
- RT_TRACE(_module_recv_osdep_c_, _drv_info_, ("rtw_recv_indicatepkt():precv_frame->u.hdr.rx_head =%p precv_frame->hdr.rx_data =%p\n", precv_frame->u.hdr.rx_head, precv_frame->u.hdr.rx_data));
- RT_TRACE(_module_recv_osdep_c_, _drv_info_, ("precv_frame->hdr.rx_tail =%p precv_frame->u.hdr.rx_end =%p precv_frame->hdr.len =%d\n", precv_frame->u.hdr.rx_tail, precv_frame->u.hdr.rx_end, precv_frame->u.hdr.len));
+ pr_info("%s %s:skb != NULL !!!\n", DRIVER_PREFIX, __func__);
+ pr_info("%s %s:precv_frame->u.hdr.rx_head =%p "
+ "precv_frame->hdr.rx_data =%p\n", DRIVER_PREFIX, __func__,
+ precv_frame->u.hdr.rx_head, precv_frame->u.hdr.rx_data);
+ pr_info("%s precv_frame->hdr.rx_tail =%p precv_frame->u.hdr.rx_end =%p "
+ "precv_frame->hdr.len =%d\n", DRIVER_PREFIX,
+ precv_frame->u.hdr.rx_tail, precv_frame->u.hdr.rx_end,
+ precv_frame->u.hdr.len);

skb->data = precv_frame->u.hdr.rx_data;

@@ -216,7 +222,10 @@ int rtw_recv_indicatepkt(struct adapter *padapter, union recv_frame *precv_frame

skb->len = precv_frame->u.hdr.len;

- RT_TRACE(_module_recv_osdep_c_, _drv_info_, ("\n skb->head =%p skb->data =%p skb->tail =%p skb->end =%p skb->len =%d\n", skb->head, skb->data, skb_tail_pointer(skb), skb_end_pointer(skb), skb->len));
+ pr_info("%s skb->head =%p skb->data =%p skb->tail =%p "
+ "skb->end =%p skb->len =%d\n", DRIVER_PREFIX,
+ skb->head, skb->data, skb_tail_pointer(skb),
+ skb_end_pointer(skb), skb->len);

rtw_os_recv_indicate_pkt(padapter, skb, pattrib);

@@ -225,7 +234,8 @@ int rtw_recv_indicatepkt(struct adapter *padapter, union recv_frame *precv_frame

rtw_free_recvframe(precv_frame, pfree_recv_queue);

- RT_TRACE(_module_recv_osdep_c_, _drv_info_, ("\n rtw_recv_indicatepkt :after rtw_os_recv_indicate_pkt!!!!\n"));
+ pr_info("%s %s: after rtw_os_recv_indicate_pkt!!!!\n",
+ DRIVER_PREFIX, __func__);

return _SUCCESS;

--
2.20.1