diff options
author | Matteo Croce <mcroce@redhat.com> | 2017-10-19 14:22:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-21 02:52:35 +0100 |
commit | 197df02cb3d3e969fb1d6fc11f5a634b7bfc2124 (patch) | |
tree | 793f39c3b0e8c7078c16fa0167a2f333be8d2c3e | |
parent | 772e97b57a4aa00170ad505a40ffad31d987ce1d (diff) | |
download | linux-197df02cb3d3e969fb1d6fc11f5a634b7bfc2124.tar.bz2 |
udp: make some messages more descriptive
In the UDP code there are two leftover error messages with very few meaning.
Replace them with a more descriptive error message as some users
reported them as "strange network error".
Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index e45177ceb0ee..806b298a3bdd 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1061,7 +1061,7 @@ back_from_confirm: /* ... which is an evident application bug. --ANK */ release_sock(sk); - net_dbg_ratelimited("cork app bug 2\n"); + net_dbg_ratelimited("socket already corked\n"); err = -EINVAL; goto out; } @@ -1144,7 +1144,7 @@ int udp_sendpage(struct sock *sk, struct page *page, int offset, if (unlikely(!up->pending)) { release_sock(sk); - net_dbg_ratelimited("udp cork app bug 3\n"); + net_dbg_ratelimited("cork failed\n"); return -EINVAL; } |