rtl8188eu: Slow the spamming of the logs

A number of unconditional print statements are converted to conditional.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2018-10-20 13:03:01 -05:00
parent b48387bdc8
commit 9fad4d2d0d
25 changed files with 133 additions and 144 deletions

View file

@ -2685,10 +2685,10 @@ s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame
/* dump total packet include MME with zero MIC */
{
int i;
printk("Total packet: ");
RTW_INFO("Total packet: ");
for (i = 0; i < BIP_AAD_SIZE + frame_body_len; i++)
printk(" %02x ", BIP_AAD[i]);
printk("\n");
RTW_INFO(" %02x ", BIP_AAD[i]);
RTW_INFO("\n");
}
#endif
/* calculate mic */
@ -2700,10 +2700,10 @@ s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame
/* dump calculated mic result */
{
int i;
printk("Calculated mic result: ");
RTW_INFO("Calculated mic result: ");
for (i = 0; i < 16; i++)
printk(" %02x ", mic[i]);
printk("\n");
RTW_INFO(" %02x ", mic[i]);
RTW_INFO("\n");
}
#endif
/* copy right BIP mic value, total is 128bits, we use the 0~63 bits */
@ -2711,10 +2711,10 @@ s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame
/*/dump all packet after mic ok
{
int pp;
printk("pattrib->pktlen = %d\n", pattrib->pktlen);
RTW_INFO("pattrib->pktlen = %d\n", pattrib->pktlen);
for(pp=0;pp< pattrib->pktlen; pp++)
printk(" %02x ", mem_start[pp]);
printk("\n");
RTW_INFO(" %02x ", mem_start[pp]);
RTW_INFO("\n");
}*/
} else { /* unicast mgmt frame TX */
/* start to encrypt mgmt frame */
@ -2748,10 +2748,10 @@ s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame
/* before encrypt dump the management packet content */
/*{
int i;
printk("Management pkt: ");
RTW_INFO("Management pkt: ");
for(i=0; i<pattrib->pktlen; i++)
printk(" %02x ", pframe[i]);
printk("=======\n");
RTW_INFO(" %02x ", pframe[i]);
RTW_INFO("=======\n");
}*/
if (pattrib->encrypt > 0)
_rtw_memcpy(pattrib->dot118021x_UncstKey.skey, psta->dot118021x_UncstKey.skey, 16);
@ -2793,10 +2793,10 @@ s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame
/* dump management packet include AES IV header */
{
int i;
printk("Management pkt + IV: ");
RTW_INFO("Management pkt + IV: ");
/* for(i=0; i<pattrib->pktlen; i++) */
printk("@@@@@@@@@@@@@\n");
RTW_INFO("@@@@@@@@@@@@@\n");
}
#endif
@ -2815,10 +2815,10 @@ s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame
/* dump management packet include AES header */
{
int i;
printk("prepare to enc Management pkt + IV: ");
RTW_INFO("prepare to enc Management pkt + IV: ");
for (i = 0; i < pattrib->pktlen; i++)
printk(" %02x ", mem_start[i]);
printk("@@@@@@@@@@@@@\n");
RTW_INFO(" %02x ", mem_start[i]);
RTW_INFO("@@@@@@@@@@@@@\n");
}
#endif
/* software encrypt */