2008-05-20 20:30:05

by Chuck Lever

[permalink] [raw]
Subject: [PATCH 2/8] SUNRPC: Use RPC procedure name in call_start

Making debugging output a little cleaner in call_start by displaying the
name of the RPC procedure instead of it's number.

Signed-off-by: Chuck Lever <[email protected]>
---

net/sunrpc/clnt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 8945307..adbc85c 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -701,9 +701,9 @@ call_start(struct rpc_task *task)
{
struct rpc_clnt *clnt = task->tk_client;

- dprintk("RPC: %5u call_start %s%d proc %d (%s)\n", task->tk_pid,
+ dprintk("RPC: %5u call_start %s%u proc %s (%s)\n", task->tk_pid,
clnt->cl_protname, clnt->cl_vers,
- task->tk_msg.rpc_proc->p_proc,
+ task->tk_msg.rpc_proc->p_name,
(RPC_IS_ASYNC(task) ? "async" : "sync"));

/* Increment call count */