From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59199 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTEwE-00085L-6i for qemu-devel@nongnu.org; Thu, 16 Dec 2010 09:36:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTEwA-0004Ol-2F for qemu-devel@nongnu.org; Thu, 16 Dec 2010 09:36:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTEw9-0004OD-PB for qemu-devel@nongnu.org; Thu, 16 Dec 2010 09:36:05 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oBGEa4x0025922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 16 Dec 2010 09:36:04 -0500 Message-ID: <4D0A23D2.8040009@redhat.com> Date: Thu, 16 Dec 2010 15:36:02 +0100 From: Jes Sorensen MIME-Version: 1.0 References: <1292508823-13015-1-git-send-email-kwolf@redhat.com> In-Reply-To: <1292508823-13015-1-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] qemu-img: Call error_set_progname List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org On 12/16/10 15:13, Kevin Wolf wrote: > 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 Acked-by: Jes Sorensen > --- > qemu-img.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/qemu-img.c b/qemu-img.c > index 603bdb3..0ff179f 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" > @@ -1508,6 +1509,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();