diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-05-07 21:24:51 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-05-08 13:16:22 -0700 |
commit | c32537d49faba69f5c2146f1ab6dbacf26bff133 (patch) | |
tree | 21b2a4a738bda6f3bbebca79eaaed34020cb437e /arch/xtensa | |
parent | a351e9b9fc24e982ec2f0e76379a49826036da12 (diff) | |
download | op-kernel-dev-c32537d49faba69f5c2146f1ab6dbacf26bff133.zip op-kernel-dev-c32537d49faba69f5c2146f1ab6dbacf26bff133.tar.gz |
xtensa: Use seq_puts() in c_show()
A string which did not contain a data format specification should be put
into a sequence. Thus use the corresponding function "seq_puts".
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/kernel/setup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 197e75b..460a226 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -594,8 +594,7 @@ c_show(struct seq_file *f, void *slot) (ccount_freq/10000) % 100, loops_per_jiffy/(500000/HZ), (loops_per_jiffy/(5000/HZ)) % 100); - - seq_printf(f,"flags\t\t: " + seq_puts(f, "flags\t\t: " #if XCHAL_HAVE_NMI "nmi " #endif |