Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752758AbeAGJSU (ORCPT + 1 other); Sun, 7 Jan 2018 04:18:20 -0500 Received: from mout.web.de ([212.227.15.3]:60972 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728AbeAGJSR (ORCPT ); Sun, 7 Jan 2018 04:18:17 -0500 To: kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , Michael Ellerman , Paul Mackerras From: SF Markus Elfring Subject: [PATCH] KVM: PPC: Use seq_puts() in kvmppc_exit_timing_show() Cc: LKML , kernel-janitors@vger.kernel.org Message-ID: <6f07cc84-cd86-8e48-5da2-edb86f466243@users.sourceforge.net> Date: Sun, 7 Jan 2018 10:18:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:kJ6qe2IhEQWrfHWZW/Gyw2Qv2J/R/T4Z0zjRBmySJNtsDoNUskM RqZRnC4861xDWZXsVuSQtVTR73zCl2s7ZyvrEVg7rn0dKAffpUVuar7DWG7Yg+N/PTw/Dn+ gzTdl//rRBrTPz3zpIBnZgG/ZpAt7apktUiN7nrWC81pIbZ/8FafqWhPzzCtD4Zrs0/oUB2 3bWyUt4A14nfqto4cS5XA== X-UI-Out-Filterresults: notjunk:1;V01:K0:3EjzXs9pNhU=:dPenVvpkTqOvAjHnVVRPNA ewMt2jy8t4BwaaL+Y7tluElTkVyxARZUaglkO5dXr7q7j7ObvgdDnR50L90shTnHo/pkil8Le I0MtWa7uD08UZDeSbgCaBtRdblQqTWTykXaMmGgrFbRtXeBu4SQSgPBCQVlEMbDh58ukl5DI6 cIAmz5eCKlCj1aHrbn0gXJp6OdkJNIhPsu+BNPz8zeQN8QSsCa/aY6m9wEvcFdErVm5VuLg/S qdJaVQyY62EAqMB7SXWNXFnUdUInzXUKf0MnKBnhVKUp5+CmMQM5d482ZV6M/aKKVVMbF2cWn wDpJQsoFILpIPp9PPf+FIbQK7dA4iy99HxGXnBx2L12HmhIymg8S38LR4kxeMCXxGKLYhoPED 1wHxzZVcwAicQsUW8G6iH1zcXes/cf9/u+EVV5mrVKJj9QDQ8mLlrM5FHEbt4ac5kRD5aniLZ RxJ+lC0KrIDdAAICKAiw4iHstKDOAUIbwVLd7bgyn4KMcT5x02f+i8ZZ40S95wTH1cWWTEAPq Ypv4W+u0bBz8XkcoWtHkReJZWp+G8y2WKCMYztFzySi/nlUU7aK5VLMnBROD1QSTXsTq/kjhY qDcErfTU2qqEbG5xa6wlunIyls6miZFnzpMPkYFExPHm0zEwkxu1jgt0s0Jhzlo2LLzerHB35 Tremu8dYhbIn37fLCKinpE3wKxVXDZtLXRzRT8+ne5ENVDX6grJ4c2pA5CMp1xLaW0RHkRftE vmkq9pJBZzZFZ8smLIKpMHyDZ5U7gtzRP/+c7oh7UotQXFnRC5F1Eed4ja2hgXO6FSZWcv/Qo SCc5pOwBb2Iz5KAlqqojj5OlnB0nhCOriv4g8gkJ01+AOrN8J4= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring 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. Signed-off-by: Markus Elfring --- 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"); - + seq_puts(m, "type count min max sum sum_squared\n"); for (i = 0; i < __NUMBER_OF_KVM_EXIT_TYPES; i++) { -- 2.15.1