Commit 3185a88c authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

fs/fscache: replace seq_printf by seq_puts



Replace seq_printf where possible + coalesce formats from 2 existing
seq_puts

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 36dfd116
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
+4 −4
Original line number Diff line number Diff line
@@ -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;
}