Re: [PATCH] net/sunrpc/clnt.c compile fix

From: Paul Mundt
Date: Thu Oct 09 2003 - 11:55:24 EST


On Thu, Oct 09, 2003 at 12:50:31PM -0400, Trond Myklebust wrote:
> It's not a true process pid, but more of a tag on each struct
> rpc_task. It turns out to be more helpful when you are tracing the
> (d|)printk() debugging info, since a process may have several rpc_task
> in flight at any point in time.
>
Sounds reasonable. Does this look ok?

--- linux-sh-2.6.0-test7.orig/net/sunrpc/clnt.c Thu Oct 9 09:42:45 2003
+++ linux-sh-2.6.0-test7/net/sunrpc/clnt.c Thu Oct 9 12:53:05 2003
@@ -961,19 +961,19 @@
case RPC_SUCCESS:
return p;
case RPC_PROG_UNAVAIL:
- printk(KERN_WARNING "RPC: %4d call_verify: program %u is unsupported by server %s\n",
- task->tk_pid, (unsigned int)task->tk_client->cl_prog,
+ printk(KERN_WARNING "RPC: call_verify: program %u is unsupported by server %s\n",
+ (unsigned int)task->tk_client->cl_prog,
task->tk_client->cl_server);
goto out_eio;
case RPC_PROG_MISMATCH:
- printk(KERN_WARNING "RPC: %4d call_verify: program %u, version %u unsupported by server %s\n",
- task->tk_pid, (unsigned int)task->tk_client->cl_prog,
+ printk(KERN_WARNING "RPC: call_verify: program %u, version %u unsupported by server %s\n",
+ (unsigned int)task->tk_client->cl_prog,
(unsigned int)task->tk_client->cl_vers,
task->tk_client->cl_server);
goto out_eio;
case RPC_PROC_UNAVAIL:
- printk(KERN_WARNING "RPC: %4d call_verify: proc %p unsupported by program %u, version %u on server %s\n",
- task->tk_pid, task->tk_msg.rpc_proc,
+ printk(KERN_WARNING "RPC: call_verify: proc %p unsupported by program %u, version %u on server %s\n",
+ task->tk_msg.rpc_proc,
task->tk_client->cl_prog,
task->tk_client->cl_vers,
task->tk_client->cl_server);

Attachment: pgp00001.pgp
Description: PGP signature