qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH v1 17/25] i386: pc: Update error API usages


From: Peter Crosthwaite
Subject: [Qemu-devel] [RFC PATCH v1 17/25] i386: pc: Update error API usages
Date: Thu, 10 Sep 2015 22:33:27 -0700

Use error_prefix() and error_report_err() as appropriate.

Signed-off-by: Peter Crosthwaite <address@hidden>
---

 hw/i386/pc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 9f2924e..1edee5b 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1276,9 +1276,8 @@ void pc_acpi_init(const char *default_dsdt)
 
         acpi_table_add_builtin(opts, &err);
         if (err) {
-            error_report("WARNING: failed to load %s: %s", filename,
-                         error_get_pretty(err));
-            error_free(err);
+            error_prefix(err, "WARNING: failed to load %s: ", filename);
+            error_report_err(err);
         }
         g_free(filename);
     }
-- 
1.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]