diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-05-29 12:18:52 +0800 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-05-30 20:25:28 -0400 |
commit | a48fd0f9f77b6e144813230c26621c00aac92ce8 (patch) | |
tree | 6e65a80c2623708c595a212fbb4e82d471e7042f /net | |
parent | b52bd7bccca57b2bbe837d14a0bf3e45279459a8 (diff) | |
download | op-kernel-dev-a48fd0f9f77b6e144813230c26621c00aac92ce8.zip op-kernel-dev-a48fd0f9f77b6e144813230c26621c00aac92ce8.tar.gz |
SUNRPC/NFSD: Remove using of dprintk with KERN_WARNING
When debugging, rpc prints messages from dprintk(KERN_WARNING ...)
with "^A4" prefixed,
[ 2780.339988] ^A4nfsd: connect from unprivileged port: 127.0.0.1, port=35316
Trond tells,
> dprintk != printk. We have NEVER supported dprintk(KERN_WARNING...)
This patch removes using of dprintk with KERN_WARNING.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/svcsock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index f3b8eb3..b507cd3 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -849,8 +849,7 @@ static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt) * tell us anything. For now just warn about unpriv connections. */ if (!svc_port_is_privileged(sin)) { - dprintk(KERN_WARNING - "%s: connect from unprivileged port: %s\n", + dprintk("%s: connect from unprivileged port: %s\n", serv->sv_name, __svc_print_addr(sin, buf, sizeof(buf))); } |