[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 5/5] x86: Add --force option to xen-ucode to override microcode version check
On Tue, Apr 23, 2024 at 04:26:53PM +0100, Fouad Hilly wrote: > On Mon, Apr 22, 2024 at 6:57 PM Anthony PERARD <anthony.perard@xxxxxxxxx> > wrote: > > On Tue, Apr 16, 2024 at 10:15:46AM +0100, Fouad Hilly wrote: > > > diff --git a/tools/misc/xen-ucode.c b/tools/misc/xen-ucode.c > > > index e3c1943e3633..4178fd2221ea 100644 > > > --- a/tools/misc/xen-ucode.c > > > +++ b/tools/misc/xen-ucode.c > > > @@ -24,7 +26,8 @@ static void usage(const char *name) > > > "Usage: %s [microcode file] [options]\n" > > > > Now, that usage line is wrong. The options needs to go before the file. > I am not sure what you mean "wrong"? from parsing perspective, both > scenarios can be successfully executed: > xen-ucode firmware-file --force > xen-ucode --force firmware-file > it becomes wrong if there is an argument expects the file as an input. Oh, sorry, I didn't know that getopt() would look for options on all arguments, even when separated by nonoptions. I'm used to CLI programs that takes options first, then files, even if that might work with a different order. Cheers, -- Anthony PERARD
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |