From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52108 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTeNH-0001ed-Qc for qemu-devel@nongnu.org; Fri, 17 Dec 2010 12:46:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTeM4-000357-6E for qemu-devel@nongnu.org; Fri, 17 Dec 2010 12:45:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTeM3-000350-Pr for qemu-devel@nongnu.org; Fri, 17 Dec 2010 12:44:32 -0500 From: Kevin Wolf Date: Fri, 17 Dec 2010 18:44:33 +0100 Message-Id: <1292607893-13461-19-git-send-email-kwolf@redhat.com> In-Reply-To: <1292607893-13461-1-git-send-email-kwolf@redhat.com> References: <1292607893-13461-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 18/38] qemu-img: Call error_set_progname List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org Call error_set_progname during the qemu-img initialization, so that error messages printed with error_report() use the right prefix. Signed-off-by: Kevin Wolf --- qemu-img.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 1d936ed..f576cfb 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -23,6 +23,7 @@ */ #include "qemu-common.h" #include "qemu-option.h" +#include "qemu-error.h" #include "osdep.h" #include "sysemu.h" #include "block_int.h" @@ -1612,6 +1613,8 @@ int main(int argc, char **argv) const img_cmd_t *cmd; const char *cmdname; + error_set_progname(argv[0]); + bdrv_init(); if (argc < 2) help(); -- 1.7.2.3