Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753243AbbLXMiN (ORCPT ); Thu, 24 Dec 2015 07:38:13 -0500 Received: from mout.web.de ([212.227.17.12]:53934 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750848AbbLXMiK (ORCPT ); Thu, 24 Dec 2015 07:38:10 -0500 Subject: [PATCH 3/3] Documentation-getdelays: Less function calls in usage() To: linux-doc@vger.kernel.org, Jonathan Corbet References: <566ABCD9.1060404@users.sourceforge.net> <567BE5AA.6070607@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <567BE729.7030800@users.sourceforge.net> Date: Thu, 24 Dec 2015 13:38:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <567BE5AA.6070607@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:uSgTc9uSWCjNnZ/ER+CeZ9QIMI/K66GXIFnXCWCPLwW190LNBUC GtLpSYS7Tg1OhdtljDnf1Kmrhvyht5UVb5qqwJUcp7UV0z2lSR5AkjlyqDMrcR4xp1eW7Jl 5NrSr/rmtJyDLvdbtFKSBQvYuuHeE2Ob99hTrvAGNJ9hBhX3Nh64/XI9CEPsXyZ9sMcZVsG 7/NlSdBWB++z0p4Z9uRaQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:/PiEcvKTj0A=:Lt0WyvCAI6pqALF70RM1bE e6B8ZohkpIjkEuIiiS6X/MBQkF8/u5iegcM27Vzs4nyxemZ7jzHX7StgIuwwVOARPQAdUtTqf /fZhnOut9bT57XlUJrjR7iItgVQhl/n6f/HLvV6HPwBlqkNIwz8BrDpGeWNqF1EKysyVZgG8v WrqBWyQyTH/WiEomQ5UnmLPeS5ipHRdTOsvxqoPDMAv+aFNPC2Hg2eg64LAu6P6Kbc66RQERc 4Z6eZ+hQk3eVMKY60Uk2nB8pT+9lR6kikmaH9qpqVG3cbVH9xjL9FJC4f9OAVhhw5/HCZGHuD Rc68+KdXJQDgaVzjytPSEb0+aJM0ehDrjTmyG+NwHu8pITnLwHgjwTAJ0nsDtOBZmJ7ZW+Pcs BdF/23IVM6LQOK16Nx9oI3O2iXid/yfX0D45miCxKGYroFr7BlaqZmFA6Z+ADkSZZa7LPquZi +OE3lLYLQ05KEZiLUapDEAYsLjjfTzr13ZVjnunKhhF0w/S6lZSOkBpJNFm11QxqAPyLxOMnX G2ljMgUHv8bDk8rLoQXzhy1v9Xf7bnHET5ARpBOIuEFszJCGvmfDJ7toyVuq8sKHXOb1rvp55 2ixDeqBsrJ9cb4Chkx2KGrNV3jDvdLT2A9kBtu0lm6JWHS08SvL+Vff+JGg7UvNJ5omP1w4Vj xbUed04Ao8mokbNcSiV1ZRVLWk5tRzeq4Cy1tF9MGE2easNJPdikv5VWDqI2MdUurM72/H07i MxdIRu3OLv+3D8bVr2JwLnO3lvcbLeQ5mhLbhpE2ojg+wSfgWUc17mCu0CM7viUddYY2+ivfm ILlTczZ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1490 Lines: 42 From: Markus Elfring Date: Thu, 24 Dec 2015 13:10:19 +0100 A single call of the fprintf() function is sufficient for the desired display of the usage information. Signed-off-by: Markus Elfring --- Documentation/accounting/getdelays.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/accounting/getdelays.c b/Documentation/accounting/getdelays.c index 9ca318d..1ad3de8 100644 --- a/Documentation/accounting/getdelays.c +++ b/Documentation/accounting/getdelays.c @@ -74,12 +74,12 @@ char cpumask[100+6*MAX_CPUS]; static void usage(void) { fprintf(stderr, "getdelays [-dilv] [-w logfile] [-r bufsize] " - "[-m cpumask] [-t tgid] [-p pid]\n"); - fprintf(stderr, " -d: print delayacct stats\n"); - fprintf(stderr, " -i: print IO accounting (works only with -p)\n"); - fprintf(stderr, " -l: listen forever\n"); - fprintf(stderr, " -v: debug on\n"); - fprintf(stderr, " -C: container path\n"); + "[-m cpumask] [-t tgid] [-p pid]\n" + " -d: print delayacct stats\n" + " -i: print IO accounting (works only with -p)\n" + " -l: listen forever\n" + " -v: debug on\n" + " -C: container path\n"); } /* -- 2.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/