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>
This commit is contained in:

کامیت شده توسط
Linus Torvalds

والد
36dfd116ed
کامیت
3185a88ce3
@@ -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;
|
||||
}
|
||||
|
مرجع در شماره جدید
Block a user