* [PATCH 0/7] Convert sprintf_symbol uses to %p[Ss]
@ 2010-11-05 23:12 Joe Perches
2010-11-05 23:12 ` [PATCH 7/7] net/sunrpc/clnt.c: Convert sprintf_symbol to %ps Joe Perches
0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2010-11-05 23:12 UTC (permalink / raw)
To: Jiri Kosina
Cc: linux-arm-kernel, linux-kernel, cluster-devel, linux-mm,
linux-nfs, netdev
Remove unnecessary declarations of temporary buffers.
Use %pS or %ps as appropriate.
Minor reformatting in a couple of places.
Compiled, but otherwise untested.
Joe Perches (7):
arch/arm/kernel/traps.c: Convert sprintf_symbol to %pS
arch/x86/kernel/pci-iommu_table.c: Convert sprintf_symbol to %pS
fs/gfs2/glock.c: Convert sprintf_symbol to %pS
fs/proc/base.c kernel/latencytop.c: Convert sprintf_symbol to %ps
kernel/lockdep_proc.c: Convert sprintf_symbol to %pS
mm: Convert sprintf_symbol to %pS
net/sunrpc/clnt.c: Convert sprintf_symbol to %ps
arch/arm/kernel/traps.c | 5 +----
arch/x86/kernel/pci-iommu_table.c | 18 ++++--------------
fs/gfs2/glock.c | 15 +++++++--------
fs/proc/base.c | 22 ++++++++--------------
kernel/latencytop.c | 23 +++++++++--------------
kernel/lockdep_proc.c | 16 ++++++----------
mm/slub.c | 11 ++++-------
mm/vmalloc.c | 9 ++-------
net/sunrpc/clnt.c | 12 ++----------
9 files changed, 43 insertions(+), 88 deletions(-)
--
1.7.3.2.146.gca209
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 7/7] net/sunrpc/clnt.c: Convert sprintf_symbol to %ps
2010-11-05 23:12 [PATCH 0/7] Convert sprintf_symbol uses to %p[Ss] Joe Perches
@ 2010-11-05 23:12 ` Joe Perches
0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2010-11-05 23:12 UTC (permalink / raw)
To: Jiri Kosina
Cc: J. Bruce Fields, Neil Brown, Trond Myklebust, David S. Miller,
linux-nfs, netdev, linux-kernel
Signed-off-by: Joe Perches <joe@perches.com>
---
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 9dab957..0c3d395 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1824,23 +1824,15 @@ static void rpc_show_task(const struct rpc_clnt *clnt,
const struct rpc_task *task)
{
const char *rpc_waitq = "none";
- char *p, action[KSYM_SYMBOL_LEN];
if (RPC_IS_QUEUED(task))
rpc_waitq = rpc_qname(task->tk_waitqueue);
- /* map tk_action pointer to a function name; then trim off
- * 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",
+ printk(KERN_INFO "%5u %04x %6d %8p %8p %8ld %8p %sv%u %s a:%ps q:%s\n",
task->tk_pid, task->tk_flags, task->tk_status,
clnt, task->tk_rqstp, task->tk_timeout, task->tk_ops,
clnt->cl_protname, clnt->cl_vers, rpc_proc_name(task),
- action, rpc_waitq);
+ task->tk_action, rpc_waitq);
}
void rpc_show_tasks(void)
--
1.7.3.2.146.gca209
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-05 23:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05 23:12 [PATCH 0/7] Convert sprintf_symbol uses to %p[Ss] Joe Perches
2010-11-05 23:12 ` [PATCH 7/7] net/sunrpc/clnt.c: Convert sprintf_symbol to %ps Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).