diff options
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/clnt.c | 12 |
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 | ||
1851 | void rpc_show_tasks(void) | 1843 | void rpc_show_tasks(void) |