qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Igor Mammedov
Subject: [Qemu-devel] [PATCH v2 0/2] vl.c: unify exit on error handling
Date: Mon, 20 Oct 2014 14:29:53 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]