From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgC6E-0006zi-QE for qemu-devel@nongnu.org; Mon, 20 Oct 2014 08:30:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgC67-0004KC-4j for qemu-devel@nongnu.org; Mon, 20 Oct 2014 08:30:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgC66-0004Iq-UI for qemu-devel@nongnu.org; Mon, 20 Oct 2014 08:30:03 -0400 From: Igor Mammedov Date: Mon, 20 Oct 2014 14:29:53 +0200 Message-Id: <1413808195-7428-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] vl.c: unify exit on error handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, armbru@redhat.com, aliguori@amazon.com 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