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 <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3a3bfb61e6
commit
e87cc4728f
@@ -2181,8 +2181,7 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb)
|
||||
|
||||
#if FASTRETRANS_DEBUG > 0
|
||||
if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_RETRANS) {
|
||||
if (net_ratelimit())
|
||||
printk(KERN_DEBUG "retrans_out leaked.\n");
|
||||
net_dbg_ratelimited("retrans_out leaked\n");
|
||||
}
|
||||
#endif
|
||||
if (!tp->retrans_out)
|
||||
|
Reference in New Issue
Block a user