diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-02-10 15:14:02 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-02-18 10:51:39 +0100 |
commit | 6936f299a47acf84b4d926d0eec4cdf3cf2274ba (patch) | |
tree | 32dffa3842c08f486af94194238fbdabc2907ca5 /qemu-img.c | |
parent | a720a390b1b2260d245bcc96923bf17e186b4b7e (diff) | |
download | qemu-6936f299a47acf84b4d926d0eec4cdf3cf2274ba.zip qemu-6936f299a47acf84b4d926d0eec4cdf3cf2274ba.tar.gz qemu-6936f299a47acf84b4d926d0eec4cdf3cf2274ba.tar.bz2 |
qemu-img: Avoid qerror_report_err() outside QMP command handlers
qerror_report_err() is a transitional interface to help with
converting existing monitor commands to QMP. It should not be used
elsewhere. Replace by error_report_err().
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -889,8 +889,7 @@ done: blk_unref(blk); if (local_err) { - qerror_report_err(local_err); - error_free(local_err); + error_report_err(local_err); return 1; } |