2008-03-21 22:43:24

by Chuck Lever III

[permalink] [raw]
Subject: [PATCH 1/6] SUNRPC: Use RPC procedure name in call_start

Clean up: Making debugging output a little cleaner in call_start by
displaying the name of the about-to-be-started 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 ea14314..5a48f96 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -705,9 +705,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 */