NFS: Use seq_putc() in nfs_show_stats()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 3 Jul 2019 13:33:09 +0000 (15:33 +0200)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 13 Jul 2019 15:47:49 +0000 (11:47 -0400)
A single character (line break) should be put into a sequence.
Thus use the corresponding function “seq_putc”.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/super.c

index d01def299d4044e0e1c3246ef5c3c9e674958734..6f1749e7020265cfc97c630b69bd7a7cea1c7c8c 100644 (file)
@@ -905,7 +905,7 @@ int nfs_show_stats(struct seq_file *m, struct dentry *root)
                        seq_printf(m, "%Lu ", totals.fscache[i]);
        }
 #endif
-       seq_printf(m, "\n");
+       seq_putc(m, '\n');
 
        rpc_clnt_show_stats(m, nfss->client);