Received: from eggs.gnu.org ([209.51.188.92]:60294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGptQ-0007eV-8u for qemu-devel@nongnu.org; Wed, 17 Apr 2019 15:06:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGptP-0003aq-9v for qemu-devel@nongnu.org; Wed, 17 Apr 2019 15:06:48 -0400 From: Markus Armbruster Date: Wed, 17 Apr 2019 21:06:27 +0200 Message-Id: <20190417190641.26814-2-armbru@redhat.com> In-Reply-To: <20190417190641.26814-1-armbru@redhat.com> References: <20190417190641.26814-1-armbru@redhat.com> Subject: [Qemu-devel] [PATCH v3 01/15] qemu-img: Use error_vreport() in error_exit() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Max Reitz , qemu-block@nongnu.org error_exit() uses low-level error_printf() to report errors. Modernize it to use error_vreport(). Cc: Kevin Wolf Cc: Max Reitz Cc: qemu-block@nongnu.org Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- qemu-img.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 8c7b2437f0..c376e91ca0 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -85,13 +85,11 @@ static void QEMU_NORETURN GCC_FMT_ATTR(1, 2) error_exit(const char *fmt, ...) { va_list ap; - error_printf("qemu-img: "); - va_start(ap, fmt); - error_vprintf(fmt, ap); + error_vreport(fmt, ap); va_end(ap); - error_printf("\nTry 'qemu-img --help' for more information\n"); + error_printf("Try 'qemu-img --help' for more information\n"); exit(EXIT_FAILURE); } -- 2.17.2