summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-12-18 16:35:05 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:28:24 -0600
commitfcdc1d6844256147a15c26c8bfe08387603d038f (patch)
tree8729e27489a5859a63d8e833c3abdc6c76ccdccf /vl.c
parentdc1a83b7dc6379256f9923bed2c6fb29645056f1 (diff)
downloadhqemu-fcdc1d6844256147a15c26c8bfe08387603d038f.zip
hqemu-fcdc1d6844256147a15c26c8bfe08387603d038f.tar.gz
error: Use error_report_err() where appropriate (again)
Same Coccinelle semantic patch as in commit 565f65d. We now use the original error whole instead of just its message obtained with error_get_pretty(). This avoids suppressing its hint (see commit 50b7b00), but I don't think the errors touched in this commit can come with hints. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1450452927-8346-3-git-send-email-armbru@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 4ea04d9..92a77df 100644
--- a/vl.c
+++ b/vl.c
@@ -4548,7 +4548,7 @@ int main(int argc, char **argv, char **envp)
Error *local_err = NULL;
qemu_boot_set(boot_once, &local_err);
if (local_err) {
- error_report("%s", error_get_pretty(local_err));
+ error_report_err(local_err);
exit(1);
}
qemu_register_reset(restore_boot_order, g_strdup(boot_order));
OpenPOWER on IntegriCloud