forked from Minki/linux
nfsd: "\%s" should be "%s"
Randy says: > sparse complains about these, as does gcc when used with --pedantic. > sparse says: > > ../fs/nfsd/nfs4state.c:2385:23: warning: unknown escape sequence: '\%' > ../fs/nfsd/nfs4state.c:2385:23: warning: unknown escape sequence: '\%' > ../fs/nfsd/nfs4state.c:2388:23: warning: unknown escape sequence: '\%' > ../fs/nfsd/nfs4state.c:2388:23: warning: unknown escape sequence: '\%' I'm not sure how this crept in. Fix it. Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
19a1aad888
commit
c4b77edb3f
@ -2382,10 +2382,10 @@ static int nfs4_show_open(struct seq_file *s, struct nfs4_stid *st)
|
||||
access = bmap_to_share_mode(ols->st_access_bmap);
|
||||
deny = bmap_to_share_mode(ols->st_deny_bmap);
|
||||
|
||||
seq_printf(s, "access: \%s\%s, ",
|
||||
seq_printf(s, "access: %s%s, ",
|
||||
access & NFS4_SHARE_ACCESS_READ ? "r" : "-",
|
||||
access & NFS4_SHARE_ACCESS_WRITE ? "w" : "-");
|
||||
seq_printf(s, "deny: \%s\%s, ",
|
||||
seq_printf(s, "deny: %s%s, ",
|
||||
deny & NFS4_SHARE_ACCESS_READ ? "r" : "-",
|
||||
deny & NFS4_SHARE_ACCESS_WRITE ? "w" : "-");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user