[dpdk-dev] [PATCH 08/11] pmdinfogen: fix usage message
Neil Horman
nhorman at tuxdriver.com
Thu Jul 7 19:46:34 CEST 2016
On Thu, Jul 07, 2016 at 06:24:16PM +0200, Thomas Monjalon wrote:
> 2016-07-07 12:05, Neil Horman:
> > On Thu, Jul 07, 2016 at 05:36:27PM +0200, Thomas Monjalon wrote:
> > > - "usage: pmdinfo <object file> <c output file>\n");
> > > + "usage: pmdinfogen <object file> <c output file>\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?
I think that makes more sense yes, given that pmdinfogen might be run as the
direct app or as the dpdk- prefixed symlink
Neil
>
>
More information about the dev
mailing list