diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:05:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:53:52 -0400 |
commit | 3185a88ce37490938d56119c474aa48616d386e8 (patch) | |
tree | 65ed0d04be95c8a45f4a999120d42dae4dbf27a4 /fs/fscache | |
parent | 36dfd116edd48fa6174d5694c143f1d4bd81aba8 (diff) |
fs/fscache: replace seq_printf by seq_puts
Replace seq_printf where possible + coalesce formats from 2 existing
seq_puts
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fscache')
-rw-r--r-- | fs/fscache/histogram.c | 6 | ||||
-rw-r--r-- | fs/fscache/object-list.c | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/fs/fscache/histogram.c b/fs/fscache/histogram.c index bad496748a59..7d637e2335fd 100644 --- a/fs/fscache/histogram.c +++ b/fs/fscache/histogram.c | |||
@@ -31,12 +31,10 @@ static int fscache_histogram_show(struct seq_file *m, void *v) | |||
31 | 31 | ||
32 | switch ((unsigned long) v) { | 32 | switch ((unsigned long) v) { |
33 | case 1: | 33 | case 1: |
34 | seq_puts(m, "JIFS SECS OBJ INST OP RUNS OBJ RUNS " | 34 | seq_puts(m, "JIFS SECS OBJ INST OP RUNS OBJ RUNS RETRV DLY RETRIEVLS\n"); |
35 | " RETRV DLY RETRIEVLS\n"); | ||
36 | return 0; | 35 | return 0; |
37 | case 2: | 36 | case 2: |
38 | seq_puts(m, "===== ===== ========= ========= =========" | 37 | seq_puts(m, "===== ===== ========= ========= ========= ========= =========\n"); |
39 | " ========= =========\n"); | ||
40 | return 0; | 38 | return 0; |
41 | default: | 39 | default: |
42 | index = (unsigned long) v - 3; | 40 | index = (unsigned long) v - 3; |
diff --git a/fs/fscache/object-list.c b/fs/fscache/object-list.c index b5ebc2d7d80d..b8179ca6bf9d 100644 --- a/fs/fscache/object-list.c +++ b/fs/fscache/object-list.c | |||
@@ -285,20 +285,20 @@ static int fscache_objlist_show(struct seq_file *m, void *v) | |||
285 | fscache_unuse_cookie(obj); | 285 | fscache_unuse_cookie(obj); |
286 | 286 | ||
287 | if (keylen > 0 || auxlen > 0) { | 287 | if (keylen > 0 || auxlen > 0) { |
288 | seq_printf(m, " "); | 288 | seq_puts(m, " "); |
289 | for (p = buf; keylen > 0; keylen--) | 289 | for (p = buf; keylen > 0; keylen--) |
290 | seq_printf(m, "%02x", *p++); | 290 | seq_printf(m, "%02x", *p++); |
291 | if (auxlen > 0) { | 291 | if (auxlen > 0) { |
292 | if (config & FSCACHE_OBJLIST_CONFIG_KEY) | 292 | if (config & FSCACHE_OBJLIST_CONFIG_KEY) |
293 | seq_printf(m, ", "); | 293 | seq_puts(m, ", "); |
294 | for (; auxlen > 0; auxlen--) | 294 | for (; auxlen > 0; auxlen--) |
295 | seq_printf(m, "%02x", *p++); | 295 | seq_printf(m, "%02x", *p++); |
296 | } | 296 | } |
297 | } | 297 | } |
298 | 298 | ||
299 | seq_printf(m, "\n"); | 299 | seq_puts(m, "\n"); |
300 | } else { | 300 | } else { |
301 | seq_printf(m, "<no_netfs>\n"); | 301 | seq_puts(m, "<no_netfs>\n"); |
302 | } | 302 | } |
303 | return 0; | 303 | return 0; |
304 | } | 304 | } |