提交 c041b5ff 编写于 作者: C Chuck Lever 提交者: Trond Myklebust

NLM: fix print format for tk_pid

The tk_pid field is an unsigned short.  The proper print format specifier for
that type is %5u, not %4d.
Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 fbf76683
...@@ -729,7 +729,7 @@ static void nlmclnt_cancel_callback(struct rpc_task *task, void *data) ...@@ -729,7 +729,7 @@ static void nlmclnt_cancel_callback(struct rpc_task *task, void *data)
goto retry_cancel; goto retry_cancel;
} }
dprintk("lockd: cancel status %d (task %d)\n", dprintk("lockd: cancel status %u (task %u)\n",
req->a_res.status, task->tk_pid); req->a_res.status, task->tk_pid);
switch (req->a_res.status) { switch (req->a_res.status) {
......
...@@ -234,7 +234,7 @@ nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, ...@@ -234,7 +234,7 @@ nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp,
*/ */
static void nlm4svc_callback_exit(struct rpc_task *task, void *data) static void nlm4svc_callback_exit(struct rpc_task *task, void *data)
{ {
dprintk("lockd: %4d callback returned %d\n", task->tk_pid, dprintk("lockd: %5u callback returned %d\n", task->tk_pid,
-task->tk_status); -task->tk_status);
} }
......
...@@ -263,7 +263,7 @@ nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, ...@@ -263,7 +263,7 @@ nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp,
*/ */
static void nlmsvc_callback_exit(struct rpc_task *task, void *data) static void nlmsvc_callback_exit(struct rpc_task *task, void *data)
{ {
dprintk("lockd: %4d callback returned %d\n", task->tk_pid, dprintk("lockd: %5u callback returned %d\n", task->tk_pid,
-task->tk_status); -task->tk_status);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册