aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2012-12-10 18:15:07 -0500
committerJ. Bruce Fields <bfields@redhat.com>2012-12-17 16:02:40 -0500
commit3a28e331115be5130fe061e6b4183b29385116a6 (patch)
tree5ba27823daf1a9008f197864b13c2ebb40f8d65b /net/sunrpc
parent18d9a2ca2ea1aa963a077fb49e7efcc3b0237a9b (diff)
svcrpc: fix some printks
Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/svcsock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 38ec968ca1c6..d8e5adfeac30 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -952,8 +952,8 @@ static int svc_tcp_recv_record(struct svc_sock *svsk, struct svc_rqst *rqstp)
952 dprintk("svc: TCP record, %d bytes\n", svc_sock_reclen(svsk)); 952 dprintk("svc: TCP record, %d bytes\n", svc_sock_reclen(svsk));
953 if (svc_sock_reclen(svsk) + svsk->sk_datalen > 953 if (svc_sock_reclen(svsk) + svsk->sk_datalen >
954 serv->sv_max_mesg) { 954 serv->sv_max_mesg) {
955 net_notice_ratelimited("RPC: fragment too large: 0x%08lx\n", 955 net_notice_ratelimited("RPC: fragment too large: %d\n",
956 (unsigned long)svsk->sk_reclen); 956 svc_sock_reclen(svsk));
957 goto err_delete; 957 goto err_delete;
958 } 958 }
959 } 959 }
@@ -1080,8 +1080,8 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
1080 if (len == want) 1080 if (len == want)
1081 svc_tcp_fragment_received(svsk); 1081 svc_tcp_fragment_received(svsk);
1082 else 1082 else
1083 dprintk("svc: incomplete TCP record (%ld of %d)\n", 1083 dprintk("svc: incomplete TCP record (%d of %d)\n",
1084 svsk->sk_tcplen - sizeof(rpc_fraghdr), 1084 (int)(svsk->sk_tcplen - sizeof(rpc_fraghdr)),
1085 svc_sock_reclen(svsk)); 1085 svc_sock_reclen(svsk));
1086 goto err_noclose; 1086 goto err_noclose;
1087 } 1087 }