aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-21 10:52:24 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-12-21 11:51:26 -0500
commitb3bcedadf23264c3b7afcbfbfe1965a17ef1352c (patch)
tree119c1b242836023b2fca36a7ec7d9642780d2908 /net/sunrpc
parentaa69947399a119d7f1b35bbcd62c849839b35449 (diff)
net/sunrpc/clnt.c: Convert sprintf_symbol to %ps
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/clnt.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 4e8210dcda72..57d344cf2256 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1829,23 +1829,15 @@ static void rpc_show_task(const struct rpc_clnt *clnt,
1829 const struct rpc_task *task) 1829 const struct rpc_task *task)
1830{ 1830{
1831 const char *rpc_waitq = "none"; 1831 const char *rpc_waitq = "none";
1832 char *p, action[KSYM_SYMBOL_LEN];
1833 1832
1834 if (RPC_IS_QUEUED(task)) 1833 if (RPC_IS_QUEUED(task))
1835 rpc_waitq = rpc_qname(task->tk_waitqueue); 1834 rpc_waitq = rpc_qname(task->tk_waitqueue);
1836 1835
1837 /* map tk_action pointer to a function name; then trim off 1836 printk(KERN_INFO "%5u %04x %6d %8p %8p %8ld %8p %sv%u %s a:%ps q:%s\n",
1838 * the "+0x0 [sunrpc]" */
1839 sprint_symbol(action, (unsigned long)task->tk_action);
1840 p = strchr(action, '+');
1841 if (p)
1842 *p = '\0';
1843
1844 printk(KERN_INFO "%5u %04x %6d %8p %8p %8ld %8p %sv%u %s a:%s q:%s\n",
1845 task->tk_pid, task->tk_flags, task->tk_status, 1837 task->tk_pid, task->tk_flags, task->tk_status,
1846 clnt, task->tk_rqstp, task->tk_timeout, task->tk_ops, 1838 clnt, task->tk_rqstp, task->tk_timeout, task->tk_ops,
1847 clnt->cl_protname, clnt->cl_vers, rpc_proc_name(task), 1839 clnt->cl_protname, clnt->cl_vers, rpc_proc_name(task),
1848 action, rpc_waitq); 1840 task->tk_action, rpc_waitq);
1849} 1841}
1850 1842
1851void rpc_show_tasks(void) 1843void rpc_show_tasks(void)