From: Kevin Wolf Date: Thu, 16 Dec 2010 14:10:32 +0000 (+0100) Subject: qemu-img: Call error_set_progname X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=53f76e5857b66dd7fa90efa9ea8326eff5aa693f;p=qemu.git qemu-img: Call error_set_progname 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 --- diff --git a/qemu-img.c b/qemu-img.c index 1d936ed0d6..f576cfb0d5 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();