Skip to contentSkip to conversation

svcrpc: fix some printks

PATCH New J. Bruce Fields 1 participant 1 message Dec 17, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 svcrpc: fix some printks

From: "J. Bruce Fields" <[email protected]>

---
 net/sunrpc/svcsock.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Hopefully I got this right this time. Queueing up for 3.8.--b.

net/sunrpc/svcsock.c +4 -4
index 38ec968..b250e27 100644
@@ -952,8 +952,8 @@ static int svc_tcp_recv_record(struct svc_sock *svsk, struct svc_rqst *rqstp)
 		dprintk("svc: TCP record, %d bytes\n", svc_sock_reclen(svsk));
 		if (svc_sock_reclen(svsk) + svsk->sk_datalen >
 							serv->sv_max_mesg) {
-			net_notice_ratelimited("RPC: fragment too large: 0x%08lx\n",
-					       (unsigned long)svsk->sk_reclen);
+			net_notice_ratelimited("RPC: fragment too large: 0x%08x\n",
+					svc_sock_reclen(svsk));
 			goto err_delete;
 		}
 	}
@@ -1080,8 +1080,8 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
 		if (len == want)
 			svc_tcp_fragment_received(svsk);
 		else
-			dprintk("svc: incomplete TCP record (%ld of %d)\n",
-				svsk->sk_tcplen - sizeof(rpc_fraghdr),
+			dprintk("svc: incomplete TCP record (%d of %d)\n",
+				svsk->sk_tcplen - (int)sizeof(rpc_fraghdr),
 				svc_sock_reclen(svsk));
 		goto err_noclose;
 	}
Signature · 1 line
1.7.9.5