net: ipv4: Standardize prefixes for message logging
Add #define pr_fmt(fmt) as appropriate. Add "IPv4: ", "TCP: ", and "IPsec: " to appropriate files. Standardize on "UDPLite: " for appropriate uses. Some prefixes were previously "UDPLITE: " and "UDP-Lite: ". Add KBUILD_MODNAME ": " to icmp and gre. Remove embedded prefixes as appropriate. Add missing "\n" to pr_info in gre.c. 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
058bd4d2a4
commit
afd465030a
@@ -333,16 +333,18 @@ void tcp_retransmit_timer(struct sock *sk)
|
||||
*/
|
||||
struct inet_sock *inet = inet_sk(sk);
|
||||
if (sk->sk_family == AF_INET) {
|
||||
LIMIT_NETDEBUG(KERN_DEBUG "TCP: Peer %pI4:%u/%u unexpectedly shrunk window %u:%u (repaired)\n",
|
||||
&inet->inet_daddr, ntohs(inet->inet_dport),
|
||||
inet->inet_num, tp->snd_una, tp->snd_nxt);
|
||||
LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("Peer %pI4:%u/%u unexpectedly shrunk window %u:%u (repaired)\n"),
|
||||
&inet->inet_daddr,
|
||||
ntohs(inet->inet_dport), inet->inet_num,
|
||||
tp->snd_una, tp->snd_nxt);
|
||||
}
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
else if (sk->sk_family == AF_INET6) {
|
||||
struct ipv6_pinfo *np = inet6_sk(sk);
|
||||
LIMIT_NETDEBUG(KERN_DEBUG "TCP: Peer %pI6:%u/%u unexpectedly shrunk window %u:%u (repaired)\n",
|
||||
&np->daddr, ntohs(inet->inet_dport),
|
||||
inet->inet_num, tp->snd_una, tp->snd_nxt);
|
||||
LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("Peer %pI6:%u/%u unexpectedly shrunk window %u:%u (repaired)\n"),
|
||||
&np->daddr,
|
||||
ntohs(inet->inet_dport), inet->inet_num,
|
||||
tp->snd_una, tp->snd_nxt);
|
||||
}
|
||||
#endif
|
||||
if (tcp_time_stamp - tp->rcv_tstamp > TCP_RTO_MAX) {
|
||||
|
Reference in New Issue
Block a user