udp: make some messages more descriptive
Subsystems (3)
PATCH 1/1 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".
--- net/ipv4/udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv4/udp.c +2 -2
@@ -1061,7 +1061,7 @@ int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)/* ... 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 ; }
Signature · 1 line
2.13.6
David Miller
maintainerFrom: Matteo Croce <[email protected]>
Date: Tue, 17 Oct 2017 18:48:12 +0200
Quoted 3 lines
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".
Please repost with a proper signoff.
PATCH v2 1/1 udp: make some messages more descriptive
In reply to Matteo CroceIn 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".
---
v2: added proper signed off tag
net/ipv4/udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv4/udp.c +2 -2
@@ -1061,7 +1061,7 @@ int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)/* ... 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 ; }
Signature · 1 line
2.13.6