summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4idmap.c
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-06-18 01:56:13 +0000
committerChuck Lever <chuck.lever@oracle.com>2020-07-13 17:28:46 -0400
commit0b7cd9d9ca66e5181f3a120cb5b44433efd0ad55 (patch)
tree468feec7574692016e2ab31577c6b4762a5f89dc /fs/nfsd/nfs4idmap.c
parent6787f0bea27a24e4c306616565b02234ee558cfb (diff)
downloadlinux-0b7cd9d9ca66e5181f3a120cb5b44433efd0ad55.tar.gz
linux-0b7cd9d9ca66e5181f3a120cb5b44433efd0ad55.tar.bz2
linux-0b7cd9d9ca66e5181f3a120cb5b44433efd0ad55.zip
nfsd: Use seq_putc() in two functions
A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc()". Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfs4idmap.c')
-rw-r--r--fs/nfsd/nfs4idmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4idmap.c b/fs/nfsd/nfs4idmap.c
index 9460be8a8321..f92161ce1f97 100644
--- a/fs/nfsd/nfs4idmap.c
+++ b/fs/nfsd/nfs4idmap.c
@@ -168,7 +168,7 @@ idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h)
ent->id);
if (test_bit(CACHE_VALID, &h->flags))
seq_printf(m, " %s", ent->name);
- seq_printf(m, "\n");
+ seq_putc(m, '\n');
return 0;
}
@@ -346,7 +346,7 @@ nametoid_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h)
ent->name);
if (test_bit(CACHE_VALID, &h->flags))
seq_printf(m, " %u", ent->id);
- seq_printf(m, "\n");
+ seq_putc(m, '\n');
return 0;
}