aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-01-31 12:14:01 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-02-03 18:35:09 -0500
commita3f565b1e530a756472401835107d08fd291f242 (patch)
tree84a15e4810f63689e3f85bbbc6497ee41934705e /fs/nfs/write.c
parent4dc2eaecd4cf0687727e418540bccf956a62ebcf (diff)
NFS: 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. Also clean up some miscellaneous print formatting nits. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index e9eff9376dc0..dea17375eb30 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -793,7 +793,8 @@ static void nfs_write_rpcsetup(struct nfs_page *req,
793 data->task.tk_priority = flush_task_priority(how); 793 data->task.tk_priority = flush_task_priority(how);
794 data->task.tk_cookie = (unsigned long)inode; 794 data->task.tk_cookie = (unsigned long)inode;
795 795
796 dprintk("NFS: %4d initiated write call (req %s/%Ld, %u bytes @ offset %Lu)\n", 796 dprintk("NFS: %5u initiated write call "
797 "(req %s/%Ld, %u bytes @ offset %Lu)\n",
797 data->task.tk_pid, 798 data->task.tk_pid,
798 inode->i_sb->s_id, 799 inode->i_sb->s_id,
799 (long long)NFS_FILEID(inode), 800 (long long)NFS_FILEID(inode),
@@ -1075,7 +1076,7 @@ int nfs_writeback_done(struct rpc_task *task, struct nfs_write_data *data)
1075 struct nfs_writeres *resp = &data->res; 1076 struct nfs_writeres *resp = &data->res;
1076 int status; 1077 int status;
1077 1078
1078 dprintk("NFS: %4d nfs_writeback_done (status %d)\n", 1079 dprintk("NFS: %5u nfs_writeback_done (status %d)\n",
1079 task->tk_pid, task->tk_status); 1080 task->tk_pid, task->tk_status);
1080 1081
1081 /* 1082 /*
@@ -1191,7 +1192,7 @@ static void nfs_commit_rpcsetup(struct list_head *head,
1191 data->task.tk_priority = flush_task_priority(how); 1192 data->task.tk_priority = flush_task_priority(how);
1192 data->task.tk_cookie = (unsigned long)inode; 1193 data->task.tk_cookie = (unsigned long)inode;
1193 1194
1194 dprintk("NFS: %4d initiated commit call\n", data->task.tk_pid); 1195 dprintk("NFS: %5u initiated commit call\n", data->task.tk_pid);
1195} 1196}
1196 1197
1197/* 1198/*
@@ -1232,7 +1233,7 @@ static void nfs_commit_done(struct rpc_task *task, void *calldata)
1232 struct nfs_write_data *data = calldata; 1233 struct nfs_write_data *data = calldata;
1233 struct nfs_page *req; 1234 struct nfs_page *req;
1234 1235
1235 dprintk("NFS: %4d nfs_commit_done (status %d)\n", 1236 dprintk("NFS: %5u nfs_commit_done (status %d)\n",
1236 task->tk_pid, task->tk_status); 1237 task->tk_pid, task->tk_status);
1237 1238
1238 /* Call the NFS version-specific code */ 1239 /* Call the NFS version-specific code */