qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2]  vl.c: unify exit on error handling
@ 2014-10-20 12:29 Igor Mammedov
  2014-10-20 12:29 ` [Qemu-devel] [PATCH v2 1/2] vl.c: use single local_err throughout main() Igor Mammedov
  2014-10-20 12:29 ` [Qemu-devel] [PATCH v2 2/2] vl.c: reduce exit on error code duplication Igor Mammedov
  0 siblings, 2 replies; 4+ messages in thread
From: Igor Mammedov @ 2014-10-20 12:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, armbru, aliguori


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(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-20 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 12:29 [Qemu-devel] [PATCH v2 0/2] vl.c: unify exit on error handling Igor Mammedov
2014-10-20 12:29 ` [Qemu-devel] [PATCH v2 1/2] vl.c: use single local_err throughout main() Igor Mammedov
2014-10-20 12:29 ` [Qemu-devel] [PATCH v2 2/2] vl.c: reduce exit on error code duplication Igor Mammedov
2014-10-20 16:48   ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).