Skip to content

vl.c: unify exit on error handling

Igor Mammedov qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* s/exit_if_error/error_report_fatal/
* move error_report_fatal() into util/error.c

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vl.c: use single local_err throughout main()vl.c+1 -30 replies
2/2vl.c: reduce exit on error code duplicationinclude/qemu/error-report.h util/error.c vl.c+32 -281 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] vl.c: unify exit on error handling

v2:
* s/exit_if_error/error_report_fatal/
* move error_report_fatal() into util/error.c

reduces amount of code needed for handling exit on error for new users, turning it from 5LOC to 1 for each case.

Igor Mammedov (2):
vl.c: use single local_err throughout main()
vl.c: reduce exit on error code duplication

 include/qemu/error-report.h |  2 ++
 util/error.c                | 24 ++++++++++++++++++++++++
 vl.c                        | 38 +++++++-------------------------------
 3 files changed, 33 insertions(+), 31 deletions(-)
Signature · 1 line
1.9.3