From patchwork Wed Mar 10 13:28:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 88853 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3E402A0567; Wed, 10 Mar 2021 14:29:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A927B22A63B; Wed, 10 Mar 2021 14:28:52 +0100 (CET) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id 9A94F22A63B for ; Wed, 10 Mar 2021 14:28:51 +0100 (CET) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A29BB19D6; Wed, 10 Mar 2021 08:28:50 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 10 Mar 2021 08:28:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=QMOTtG2wo+U9x +ONJFBG065HcSeshlSHvhqn0Rk5xPI=; b=FuYBTETnUNJmmLxKDjLWXQcQV9Zjw oDVduxxJP+CNuv4R9EaRFisjElEuowp7DmrOH66artzYFgVveUkP5mLf9UPQnoxX z/JB3PsLrbdS8Y4vHvXQg76t17xA6kMk4sA3C364KOMJ224Y7EofAUbj22LzPfpV FmWHLnwrADvRZFnRzFcf6f7OaJ5oWaHtXnaxWlgdGklbcICiBgeHXZ4jRYui+MnH QryyWBWbr9IAfMm0fYSKAiHUCbnTUHZpeyOZVY+xP8KONP2MXKfkQucFnkcOt16X y6PPyWLqh743l6G496zdOSlzLGOQW1QcETjPu5TImHcA1IWmT8ngJVR7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=QMOTtG2wo+U9x+ONJFBG065HcSeshlSHvhqn0Rk5xPI=; b=n/+Jkewx rhzAec9OR/mxcZtYylBxKUMFC8FzH052199kSMCzp2pla9erhsBgEId6T93YzyaD k60ValD9u/ebP4F8UxxK8Ixarn5rEOupjg2zz80Fp7Prmdau4GTXbp+1YAp+RDq1 DlIZ/5k/+3QwjRN6jTKyE7u/68tmxglqngJvHcbcLOysdgh6UFlqmZWD8ns1KBFg Trc6BHgUzv3cjeyg8BxO379DpdHzbme6/pc0BeBTBWLXXGCPWxc/phORyfw4wI5P DWJjwiSDIAhdql7AnNN25lmSsfkwi838N65oT1ibNTeEvhljVZ/b7vsF9Ie+Iz2R x2zLwiQznnS95A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddukedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id AEAAF24005B; Wed, 10 Mar 2021 08:28:49 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, Ori Kam Date: Wed, 10 Mar 2021 14:28:24 +0100 Message-Id: <20210310132825.2627851-11-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210310132825.2627851-1-thomas@monjalon.net> References: <20210309233116.1934666-1-thomas@monjalon.net> <20210310132825.2627851-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 10/11] app/regex: fix usage text X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The usage syntax help includes the program name which was fake. It is replaced with the real name from argv. Signed-off-by: Thomas Monjalon Acked-by: Ori Kam --- app/test-regex/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-regex/main.c b/app/test-regex/main.c index ba09b20126..73ba227fba 100644 --- a/app/test-regex/main.c +++ b/app/test-regex/main.c @@ -151,10 +151,10 @@ args_parse(int argc, char **argv, char *rules_file, char *data_file, *nb_lcores = atoi(optarg); break; case ARG_HELP: - usage("RegEx test app"); + usage(argv[0]); break; default: - usage("RegEx test app"); + usage(argv[0]); rte_exit(EXIT_FAILURE, "Invalid option: %s\n", argv[optind]); break; }