On Thu, Jul 25, 2024 at 9:41 AM Jan Beulich wrote:
> On 25.07.2024 10:27, Fouad Hilly wrote:
> > @@ -71,12 +72,29 @@ static void show_curr_cpu(FILE *f)
> > }
> > }
> >
> > +static void usage(FILE *stream, const char *name)
> > +{
> > +fprintf(stream,
> > +"%s: Xen microcode
On 25.07.2024 10:27, Fouad Hilly wrote:
> @@ -71,12 +72,29 @@ static void show_curr_cpu(FILE *f)
> }
> }
>
> +static void usage(FILE *stream, const char *name)
> +{
> +fprintf(stream,
> +"%s: Xen microcode updating tool\n"
> +"options:\n"
> +" -h, --
On 25.07.2024 10:27, Fouad Hilly wrote:
> @@ -71,12 +72,29 @@ static void show_curr_cpu(FILE *f)
> }
> }
>
> +static void usage(FILE *stream, const char *name)
> +{
> +fprintf(stream,
> +"%s: Xen microcode updating tool\n"
> +"options:\n"
> +" -h, --
Use getopt_long() to handle command line arguments.
Introduce ext_err for common exit with errors.
Introducing usage() to handle usage\help messages in a common block.
show_curr_cpu is printed to stdout only.
Signed-off-by: Fouad Hilly
---
[v6]
1- Update usage() printed message format: [microcode