Skip to contentSkip to conversation

KVM: PPC: Use seq_puts() in kvmppc_exit_timing_show()

PATCH Applied SF Markus Elfring 2 participants 2 messages Jan 7, 2018 – Jan 11, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: PPC: Use seq_puts() in kvmppc_exit_timing_show()

From: Markus Elfring <[email protected]>
Date: Sun, 7 Jan 2018 10:07:36 +0100

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.

---
 arch/powerpc/kvm/timing.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/powerpc/kvm/timing.c +1 -2
index e44d2b2ea97e..1c03c978eb18 100644
@@ -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++) {
 
Signature · 1 line
2.15.1
#1 lore raw
Quoted 9 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sun, 7 Jan 2018 10:07:36 +0100

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.

Thanks, applied to my kvm-ppc-next branch.

Paul.