summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-01-07 10:07:36 +0100
committerPaul Mackerras <paulus@ozlabs.org>2018-01-11 10:36:06 +0100
commit1627301020cb460f5a74e13c291f8db3b2a8062e (patch)
tree636984c55a288d6c1c949e3c161509bab7ff4b23 /arch
parentKVM: PPC: Book3S HV: Remove vcpu->arch.dec usage (diff)
downloadlinux-1627301020cb460f5a74e13c291f8db3b2a8062e.tar.xz
linux-1627301020cb460f5a74e13c291f8db3b2a8062e.zip
KVM: PPC: Use seq_puts() in kvmppc_exit_timing_show()
A headline should be quickly put into a sequence. Thus use the function "seq_puts" instead of "seq_printf" for this purpose. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kvm/timing.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/timing.c b/arch/powerpc/kvm/timing.c
index e44d2b2ea97e..1c03c978eb18 100644
--- a/arch/powerpc/kvm/timing.c
+++ b/arch/powerpc/kvm/timing.c
@@ -143,8 +143,7 @@ static int kvmppc_exit_timing_show(struct seq_file *m, void *private)
int i;
u64 min, max, sum, sum_quad;
- seq_printf(m, "%s", "type count min max sum sum_squared\n");
-
+ seq_puts(m, "type count min max sum sum_squared\n");
for (i = 0; i < __NUMBER_OF_KVM_EXIT_TYPES; i++) {