]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fs/fscache: replace seq_printf by seq_puts
authorFabian Frederick <fabf@skynet.be>
Sat, 17 May 2014 13:17:20 +0000 (23:17 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:17:20 +0000 (23:17 +1000)
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>
fs/fscache/histogram.c
fs/fscache/object-list.c

index bad496748a59c12454592c426f2a9e22c3c31a1c..7d637e2335fda427a891cdb000b02985f9967b62 100644 (file)
@@ -31,12 +31,10 @@ static int fscache_histogram_show(struct seq_file *m, void *v)
 
        switch ((unsigned long) v) {
        case 1:
-               seq_puts(m, "JIFS  SECS  OBJ INST  OP RUNS   OBJ RUNS "
-                        " RETRV DLY RETRIEVLS\n");
+               seq_puts(m, "JIFS  SECS  OBJ INST  OP RUNS   OBJ RUNS  RETRV DLY RETRIEVLS\n");
                return 0;
        case 2:
-               seq_puts(m, "===== ===== ========= ========= ========="
-                        " ========= =========\n");
+               seq_puts(m, "===== ===== ========= ========= ========= ========= =========\n");
                return 0;
        default:
                index = (unsigned long) v - 3;
index b5ebc2d7d80d30d39b21243561e1f7d26c300329..b8179ca6bf9d125aa7862012eb61e5a43b85234e 100644 (file)
@@ -285,20 +285,20 @@ static int fscache_objlist_show(struct seq_file *m, void *v)
                fscache_unuse_cookie(obj);
 
                if (keylen > 0 || auxlen > 0) {
-                       seq_printf(m, " ");
+                       seq_puts(m, " ");
                        for (p = buf; keylen > 0; keylen--)
                                seq_printf(m, "%02x", *p++);
                        if (auxlen > 0) {
                                if (config & FSCACHE_OBJLIST_CONFIG_KEY)
-                                       seq_printf(m, ", ");
+                                       seq_puts(m, ", ");
                                for (; auxlen > 0; auxlen--)
                                        seq_printf(m, "%02x", *p++);
                        }
                }
 
-               seq_printf(m, "\n");
+               seq_puts(m, "\n");
        } else {
-               seq_printf(m, "<no_netfs>\n");
+               seq_puts(m, "<no_netfs>\n");
        }
        return 0;
 }