KVM: PPC: Use seq_puts() in kvmppc_exit_timing_show()
"Linux Kernel Mailing List" <[email protected]> Sat, 10 Feb 2018 22:00:24 +0000 (UTC)
| Newsgroups | gmane.linux.kernel.commits.head |
|---|---|
| Message-ID | <[email protected]> |
Web: https://git.kernel.org/torvalds/c/1627301020cb460f5a74e13c291f8db3b2a8062e Commit: 1627301020cb460f5a74e13c291f8db3b2a8062e Parent: 81ceca05a42e24768c73d4d6dbd3701a60f1ed85 Refname: refs/heads/master Author: Markus Elfring <[email protected]> AuthorDate: Sun Jan 7 10:07:36 2018 +0100 Committer: Paul Mackerras <[email protected]> CommitDate: Thu Jan 11 20:36:06 2018 +1100 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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]> --- arch/powerpc/kvm/timing.c | 3 +-- 1 file changed, 1 insertion(+), 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");