elogtool: add next_available_event_offset function

Hardware / Coreboot - Ricardo Quesada [google.com] - 16 September 2021 13:52 UTC

This function is "extracted" from cmd_clear(). This new function will be called from cmd_add(), and new command that will be added in a future CL (see CL chain).

Additional minor fixes:
- calls usage() if no valid commands are passed.- Slightly improves usage() output. Needed for cmd_clear()

BUG=b:172210863 TEST=elogtool clear

Change-Id: I0d8ecc893675758d7f90845282a588d367b55567

a2bf94d4c1 elogtool: add next_available_event_offset function
util/cbfstool/elogtool.c | 54 ++++++++++++++++++++++++++++--------------------
1 file changed, 32 insertions(+), 22 deletions(-)

Upstream: review.coreboot.org


  • Share