KVM: PPC: Use seq_puts() in kvmppc_exit_timing_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 7 Jan 2018 09:07:36 +0000 (10:07 +0100)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 11 Jan 2018 09:36:06 +0000 (20:36 +1100)
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>
arch/powerpc/kvm/timing.c

index e44d2b2..1c03c97 100644 (file)
@@ -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++) {