Re: [PATCH] rt-tests: oslat: print version string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 11 Feb 2021, Daniel Wagner wrote:

> > --- a/src/oslat/oslat.c
> > +++ b/src/oslat/oslat.c
> > @@ -512,7 +512,6 @@ static void handle_alarm(int code)
> >  
> >  static void usage(int error)
> >  {
> > -	printf("oslat V %1.2f\n", VERSION);
> >  	printf("Usage:\n"
> 
> Why do you remove the version string in the usage output. Every other
> tool prints it?
> 
> 

Because the version is printed out before the call to parse the options.
If you don't remove it here, it gets printed out twice.

John




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux