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 5DF45A0A0A for ; Mon, 5 Apr 2021 21:33:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8198C140EA2; Mon, 5 Apr 2021 21:33:34 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 69A5B140E7E; Mon, 5 Apr 2021 21:33:32 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 113A55C00F0; Mon, 5 Apr 2021 15:33:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 05 Apr 2021 15:33:32 -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=SftPoVTqpfjxr d3arBQts6F+dPeir3qBtJZ2L4QVcts=; b=YkoD97NoWbLBDPQAWPWz+EwZa7Uyw F63OOUF2uaB3XGSdlp02IvT+IEZ+XUMiddGgucg7GoK6jdI24WXgHfPrbkJ1ZcCv AtcmDvC76efR9BwnxZvblsA7chah9rMf5LFYYcb+2mnMrblDyzpX2Z+dcoNqoNJN CGBs5ouzKAMHBtC73jk2jRlRX+NBa6B+RSy3XNg5tZ89bOyvj7EV8lVhYhGdsKCt IZ9j8vYcqcyIUsUK/GkGC8J+FOz+W6FC/NCTaZOeGo2tla4wKMjovgTF8KGIQ4o8 WR7hMIotG+hf+jeD12I5WOTOxF5TXBj8bI+boBZGpfqKEVTC60FF6Q1WA== 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=SftPoVTqpfjxrd3arBQts6F+dPeir3qBtJZ2L4QVcts=; b=de+eSLvH WdG4O3K2pIPhk+fMyVwTtp9Sqb5J1K9+yNcEkwhITMwEhAcRzipLnxgzkK5NAWTY vvpBw4JQG+0HSLtqSB9U0Q1MnITEDKcYi8xSKBUggsQjtknQc0iKAv0C3eP4lKmN 0WYvGl7uP2FLT5szerK4vItsIOzizqdpNHhzhJ1cm1++P/JeiGo6H8KnRMklCDnY z5lUvwebict0D3mvyYKupMTuFen8Bh/jO5N4U7kHBVCBUCPByvTRRgCmcqcON0+B r60+kmUV1gxZ736PldY1IYY3+09ufL0LJWaK5noY20caISpwfR06GSusedfx0YXM 1H+bGWR30KOnYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejvddgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedt gfeutdehtdegveenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh fuihiivgepheenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr 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 16B2F108005F; Mon, 5 Apr 2021 15:33:31 -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: Mon, 5 Apr 2021 21:33:24 +0200 Message-Id: <20210405193325.1114795-3-thomas@monjalon.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210405193325.1114795-1-thomas@monjalon.net> References: <20210309233116.1934666-1-thomas@monjalon.net> <20210405193325.1114795-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v5 2/3] 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 7bb87bb1b8..f18dc2eef8 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.31.1