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 4BB04A0548 for ; Sun, 21 Mar 2021 23:32:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C62DB140EB7; Sun, 21 Mar 2021 23:32:18 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 3F315140E4A; Sun, 21 Mar 2021 23:32:09 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id DCA0B5C00C2; Sun, 21 Mar 2021 18:32:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 21 Mar 2021 18:32:08 -0400 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=egk9sVCrDvB5H Q1ri4sggS836PDkGZnVuNEZ/6liEgE=; b=AjpjDEFdn6eOVBm6H+eVXUahs4TXE SJRN6tpuF4i+EEjyHswy1qmF3Q3F01Ln1TtmeOI4ZENWbjTXYzw6LN6GwD4G5kLu eqDlrZweLFfoHFyhlI803UFXHXRM18+YKjHGe3jkeHehUqz3129Tv7DPObfEUgyQ tFKOXKcoc1fZkBrV7NJkDueG0z0g825o/DTVugAm0fX4CpeJ45CXJijrADs2L0/G nrTtSo3bcg7LFlm0LkGOLr/6DvFJmLQCL0f1uL5t/dvweyIlcNS1SI7QqQodvf90 tcUl/PY9J59DTjg4gp7frI3K1N7GUTwNl0LZ291ttdKJ9zfFsfThTDb5g== 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=egk9sVCrDvB5HQ1ri4sggS836PDkGZnVuNEZ/6liEgE=; b=XVmoQ83y 9rKKKN49urQYuTAjild9HBszpmzFgvjcmqyuo3I2U+3IsTGFjWNT01GuFxpFR5UG uhF2+5GOiL45Sj6CvVqZ4Vigl734TBAWBWgM2ojKEqN2ku8KCvkEi3J1QRPS6pva fF32cN61rqGBoWNCV4wVv1pxDMV+BrpYRMBnIzpYpX/aC6sdkbLd/JVUvRnDbJLz qtM/Q/YjIfgJKsoyPmC9VqmeSX9HlxA7nTGjIkVY/BUQ8uLcO+xHGG6PRPInmYMb EBvR29uns2BKEXtWJI29kT54IbmQcM+d90XQfMzgZKAnF3W5qfAqCgGQUaACamza tiU6ii6k89DKaA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegvddgudeivdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedt gfeutdehtdegveenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh fuihiivgepkeenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr lhhonhdrnhgvth 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 DEC2224035D; Sun, 21 Mar 2021 18:32:07 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, stable@dpdk.org, Ori Kam , Bruce Richardson , Andrew Rybchenko , Yuval Avnery Date: Sun, 21 Mar 2021 23:31:14 +0100 Message-Id: <20210321223116.1340974-11-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210321223116.1340974-1-thomas@monjalon.net> References: <20210309233116.1934666-1-thomas@monjalon.net> <20210321223116.1340974-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v4 10/11] app/regex: fix usage text X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" The usage syntax help includes the program name which was fake. It is replaced with the real name from argv. Fixes: de06137cb295 ("app/regex: add RegEx test application") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon Acked-by: Ori Kam Acked-by: Bruce Richardson Acked-by: Andrew Rybchenko --- 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