diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-01-31 12:14:08 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-03 18:35:10 -0500 |
commit | 46121cf7d85869bfe9588bac7ccf55aa0bc7f278 (patch) | |
tree | 51172f1b47dd8aa99e6f96c495fe7f8e2c0bbc34 /net/sunrpc/stats.c | |
parent | 8885cb367f86ce02bed3bf18192d74a53ac3b81f (diff) |
SUNRPC: 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 'net/sunrpc/stats.c')
-rw-r--r-- | net/sunrpc/stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c index bd98124c3a64..d19cd9ec6e99 100644 --- a/net/sunrpc/stats.c +++ b/net/sunrpc/stats.c | |||
@@ -226,7 +226,7 @@ do_register(const char *name, void *data, const struct file_operations *fops) | |||
226 | struct proc_dir_entry *ent; | 226 | struct proc_dir_entry *ent; |
227 | 227 | ||
228 | rpc_proc_init(); | 228 | rpc_proc_init(); |
229 | dprintk("RPC: registering /proc/net/rpc/%s\n", name); | 229 | dprintk("RPC: registering /proc/net/rpc/%s\n", name); |
230 | 230 | ||
231 | ent = create_proc_entry(name, 0, proc_net_rpc); | 231 | ent = create_proc_entry(name, 0, proc_net_rpc); |
232 | if (ent) { | 232 | if (ent) { |
@@ -263,7 +263,7 @@ svc_proc_unregister(const char *name) | |||
263 | void | 263 | void |
264 | rpc_proc_init(void) | 264 | rpc_proc_init(void) |
265 | { | 265 | { |
266 | dprintk("RPC: registering /proc/net/rpc\n"); | 266 | dprintk("RPC: registering /proc/net/rpc\n"); |
267 | if (!proc_net_rpc) { | 267 | if (!proc_net_rpc) { |
268 | struct proc_dir_entry *ent; | 268 | struct proc_dir_entry *ent; |
269 | ent = proc_mkdir("rpc", proc_net); | 269 | ent = proc_mkdir("rpc", proc_net); |
@@ -277,7 +277,7 @@ rpc_proc_init(void) | |||
277 | void | 277 | void |
278 | rpc_proc_exit(void) | 278 | rpc_proc_exit(void) |
279 | { | 279 | { |
280 | dprintk("RPC: unregistering /proc/net/rpc\n"); | 280 | dprintk("RPC: unregistering /proc/net/rpc\n"); |
281 | if (proc_net_rpc) { | 281 | if (proc_net_rpc) { |
282 | proc_net_rpc = NULL; | 282 | proc_net_rpc = NULL; |
283 | remove_proc_entry("net/rpc", NULL); | 283 | remove_proc_entry("net/rpc", NULL); |