From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1A7BDA0547; Fri, 12 Mar 2021 19:18:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 78D83160912; Fri, 12 Mar 2021 19:17:48 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id C0918160909 for ; Fri, 12 Mar 2021 19:17:45 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 70AF35C0192; Fri, 12 Mar 2021 13:17:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 12 Mar 2021 13:17:45 -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=qKHe2C65FutgnyXkl7S6nUOB0vfwy NhAOmW2ffhKOQ2hPPDEHndnXP7rgYpzx8h08UROlfZYOK4DikYpEL14FjGp70Kzs DnamJY5Ter/dMiSFKb9HUjPg+v2wlAFPlLlLy2R2ifSbbByBJQmM+QZ37PXcH6oR QNUO4gGSBu4dLRbQBBks9ozMgDxHYrnTKljOAkL89U1bWi361jMUSKrHPjqNXaSu /dfn75+fdEKqVkWPp4NRjSZmYSuW68OmLBoimde6380Q0NbsbWIaI7BHBuw7ipli oTi+kK7ue6IfTGccIskhx3CC906y2gJ0z7DpRr9s9UHvYYi/FpaPZLYTQ== 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=ohKGdH5A Z0ipg0OuEHl//AihQy/1Oxm4T+t9mzNIO8fuxZm+b9yv/S8WJ1Zx32XaCGQVV8Lp snXNgNOwZ5pQA9t9gCXU6a5FVlkenoUfzflxgnftWeml5XSRvI5cku+ol23rTS6y dpgKecN9TYrQKJ6c6tF0LSgIKac0V1QFgC8PXPTZAHZaGzfkCEKpIYgRTOhZo5Q6 QyysWgS7tnILca60afqXGfxC8pCVHxqaJvw/4rs+Mbo6Lrv7RuAGTDuEJ0MtaWer QBGvy+erjcdK9bTw79E0YVofe4iTJig1hKapy8ARJMJ25qhA2qq/UfmvKC3RbKa3 i7NeMS0QnJMpCg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddvvddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedt gfeutdehtdegveenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh fuihiivgepuddtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhj rghlohhnrdhnvght 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 B0343240054; Fri, 12 Mar 2021 13:17:44 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, mb@smartsharesystems.com, Ori Kam Date: Fri, 12 Mar 2021 19:17:19 +0100 Message-Id: <20210312181720.242252-11-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312181720.242252-1-thomas@monjalon.net> References: <20210309233116.1934666-1-thomas@monjalon.net> <20210312181720.242252-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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; } -- 2.30.1