From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 08/11] pmdinfogen: fix usage message Date: Thu, 07 Jul 2016 18:24:16 +0200 Message-ID: <1957789.Y4ZcBehmLI@xps13> References: <1467905790-10597-1-git-send-email-thomas.monjalon@6wind.com> <1467905790-10597-9-git-send-email-thomas.monjalon@6wind.com> <20160707160559.GG26064@hmsreliant.think-freely.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Neil Horman Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id D80AE5477 for ; Thu, 7 Jul 2016 18:24:17 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id f126so217229627wma.1 for ; Thu, 07 Jul 2016 09:24:17 -0700 (PDT) In-Reply-To: <20160707160559.GG26064@hmsreliant.think-freely.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-07-07 12:05, Neil Horman: > On Thu, Jul 07, 2016 at 05:36:27PM +0200, Thomas Monjalon wrote: > > - "usage: pmdinfo \n"); > > + "usage: pmdinfogen \n"); > > That should probably be an "%s...", argv[0], just to keep the name in line with > whatever its run as (via the symlink for instance) Yes I was hesitating. I think argv[0] gives the full path. So it is often used with basename(). Do you prefer this solution?