mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
net: Convert net_ratelimit uses to net_<level>_ratelimited
Standardize the net core ratelimited logging functions. Coalesce formats, align arguments. Change a printk then vprintk sequence to use printf extension %pV. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3a3bfb61e6
commit
e87cc4728f
76 changed files with 306 additions and 490 deletions
|
|
@ -131,10 +131,9 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
|
|||
|
||||
if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
|
||||
(unsigned int)sk->sk_rcvbuf && rx_flow_is_on(cf_sk)) {
|
||||
if (net_ratelimit())
|
||||
pr_debug("sending flow OFF (queue len = %d %d)\n",
|
||||
atomic_read(&cf_sk->sk.sk_rmem_alloc),
|
||||
sk_rcvbuf_lowwater(cf_sk));
|
||||
net_dbg_ratelimited("sending flow OFF (queue len = %d %d)\n",
|
||||
atomic_read(&cf_sk->sk.sk_rmem_alloc),
|
||||
sk_rcvbuf_lowwater(cf_sk));
|
||||
set_rx_flow_off(cf_sk);
|
||||
caif_flow_ctrl(sk, CAIF_MODEMCMD_FLOW_OFF_REQ);
|
||||
}
|
||||
|
|
@ -144,8 +143,7 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
|
|||
return err;
|
||||
if (!sk_rmem_schedule(sk, skb->truesize) && rx_flow_is_on(cf_sk)) {
|
||||
set_rx_flow_off(cf_sk);
|
||||
if (net_ratelimit())
|
||||
pr_debug("sending flow OFF due to rmem_schedule\n");
|
||||
net_dbg_ratelimited("sending flow OFF due to rmem_schedule\n");
|
||||
caif_flow_ctrl(sk, CAIF_MODEMCMD_FLOW_OFF_REQ);
|
||||
}
|
||||
skb->dev = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue