David Hendricks has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29744 )
Change subject: util/cbfstool: Add optional argument ibb
......................................................................
Patch Set 22: Code-Review-1
(3 comments)
Hi Patrick,
Thanks for doing this. I don't think it will work as written, though - You still need a `val` in the long_options[] entry so that getopt_long() will return a value to process in the switch statement. I've added some comments as an example.
https://review.coreboot.org/c/coreboot/+/29744/20/util/cbfstool/cbfstool.c
File util/cbfstool/cbfstool.c:
https://review.coreboot.org/c/coreboot/+/29744/20/util/cbfstool/cbfstool.c@1...
PS20, Line 1300:
enum {
/* begin after ASCII characters */
LONGOPT_IBB = 256,
};
https://review.coreboot.org/c/coreboot/+/29744/20/util/cbfstool/cbfstool.c@1...
PS20, Line 1678: break;
You still need this, but with the int for the longopt (i.e. LONGOPT_IBB)
https://review.coreboot.org/c/coreboot/+/29744/22/util/cbfstool/cbfstool.c
File util/cbfstool/cbfstool.c:
https://review.coreboot.org/c/coreboot/+/29744/22/util/cbfstool/cbfstool.c@1...
PS22, Line 1334: 0
LONGOPT_IBB
--
To view, visit
https://review.coreboot.org/c/coreboot/+/29744
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idb4857c894b9ee1edc464c0a1216cdda29937bbd
Gerrit-Change-Number: 29744
Gerrit-PatchSet: 22
Gerrit-Owner: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Amol N Sukerkar
amol.n.sukerkar@intel.com
Gerrit-Reviewer: Christian Walter
christian.walter@9elements.com
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Jens Drenhaus
jens.drenhaus@9elements.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Kai Michaelis
kai.michaelis@9elements.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: Roy Wen
rgzwen@arista.com
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Tue, 15 Oct 2019 23:02:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment