Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3bcedad authored by Joe Perches's avatar Joe Perches Committed by Trond Myklebust
Browse files

net/sunrpc/clnt.c: Convert sprintf_symbol to %ps

parent aa699473
Loading
Loading
Loading
Loading
+2 −10
Original line number Original line Diff line number Diff line
@@ -1829,23 +1829,15 @@ static void rpc_show_task(const struct rpc_clnt *clnt,
			  const struct rpc_task *task)
			  const struct rpc_task *task)
{
{
	const char *rpc_waitq = "none";
	const char *rpc_waitq = "none";
	char *p, action[KSYM_SYMBOL_LEN];


	if (RPC_IS_QUEUED(task))
	if (RPC_IS_QUEUED(task))
		rpc_waitq = rpc_qname(task->tk_waitqueue);
		rpc_waitq = rpc_qname(task->tk_waitqueue);


	/* map tk_action pointer to a function name; then trim off
	printk(KERN_INFO "%5u %04x %6d %8p %8p %8ld %8p %sv%u %s a:%ps q:%s\n",
	 * the "+0x0 [sunrpc]" */
	sprint_symbol(action, (unsigned long)task->tk_action);
	p = strchr(action, '+');
	if (p)
		*p = '\0';

	printk(KERN_INFO "%5u %04x %6d %8p %8p %8ld %8p %sv%u %s a:%s q:%s\n",
		task->tk_pid, task->tk_flags, task->tk_status,
		task->tk_pid, task->tk_flags, task->tk_status,
		clnt, task->tk_rqstp, task->tk_timeout, task->tk_ops,
		clnt, task->tk_rqstp, task->tk_timeout, task->tk_ops,
		clnt->cl_protname, clnt->cl_vers, rpc_proc_name(task),
		clnt->cl_protname, clnt->cl_vers, rpc_proc_name(task),
		action, rpc_waitq);
		task->tk_action, rpc_waitq);
}
}


void rpc_show_tasks(void)
void rpc_show_tasks(void)