]> git.proxmox.com Git - mirror_qemu.git/blobdiff - arch_init.c
spapr_pci: Switch to vfio_eeh_as_op() interface
[mirror_qemu.git] / arch_init.c
index 38f5fb9c22c75b8f68eb91d77676800fa55919e6..f6aba02cb259e7260d83b39ed275b39224027f0a 100644 (file)
@@ -21,7 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
-#include <stdint.h>
+#include "qemu/osdep.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/arch_init.h"
 #include "hw/pci/pci.h"
@@ -258,9 +258,7 @@ void do_acpitable_option(const QemuOpts *opts)
 
     acpi_table_add(opts, &err);
     if (err) {
-        error_report("Wrong acpi table provided: %s",
-                     error_get_pretty(err));
-        error_free(err);
+        error_reportf_err(err, "Wrong acpi table provided: ");
         exit(1);
     }
 #endif