mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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>
This commit is contained in:
parent
6787f0bea2
commit
0b7cd9d9ca
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user