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 B352DA0567; Wed, 10 Mar 2021 00:32:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 23FC222A58A; Wed, 10 Mar 2021 00:31:58 +0100 (CET) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 2598C22A580 for ; Wed, 10 Mar 2021 00:31:55 +0100 (CET) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CD3DE5C009A; Tue, 9 Mar 2021 18:31:54 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 09 Mar 2021 18:31:54 -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=0iGb1EX6bRZ4M 4k7oWO2//j0cXkeZoudMVbtxRDJaSM=; b=EtjSCh7eijSr7mNjsyiAQ/6etk4fz qhkaXSNWC6h+hgMkenv4LMvqqVgdszBZDm7hdpBOeKdbGFIWMSuh/egFQIjkg1Dz saS16V84DgWk8qObflWfGcxxv9O1bu6gqqJ0G/jSYbEQOUqZj4+aWXmEM3ewoZwv 0uj5cVdivGqoJawe6a+NNrSz5Hz0o+C7vPAeImz+OU6ZfzfO0845L2yP/C8xUJK3 OPFkUX1GBduUTf5Y3yRkgwHtBQCfaz10AbdwLmxeFfmGFlZOhHGUTsYFDITN3ZJj 6DglrOxLPGULcx8GUBuwnh92zWI4tKs3J2XJJZcRbe6joJtjX+wqRbGTQ== 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=0iGb1EX6bRZ4M4k7oWO2//j0cXkeZoudMVbtxRDJaSM=; b=Z0I2VR9c L7ubJmq3c65ow1TROr76kD9DqiyKAMSbJ/rdx5R0pg6l4mFOg90MvS6ef5/XZTV8 +Ctb31AZegHaGanH8Ms2EHcG/o9riF1nua9qYC0+82dp2AezaybX/E7/jh96P6HO KMNmqF+4DuNsOIyDaejWdIJB3AVSktfqqNXJpNP/CdKngpXqTDFcTXSTgOiy3ig4 lRp3WkIH3e0vuuAG+1Mh0n+hvBTwsU2lmyrJfU5uPL0sm7amZlrXu5BBY8y9Be3q 8OZ3NN6MsDJ0ollqj/F/SOu/o/25olYuAkGKVcIfqWAgNhRDfoKdOSSUt8DUJR5A 4pv7ZnjIvDcqEw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudduiedgudejfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedt gfeutdehtdegveenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh fuihiivgepvdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr 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 4E844240057; Tue, 9 Mar 2021 18:31:54 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, Ori Kam Date: Wed, 10 Mar 2021 00:31:14 +0100 Message-Id: <20210309233116.1934666-11-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210309233116.1934666-1-thomas@monjalon.net> References: <20210309233116.1934666-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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 --- 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