diff options
Diffstat (limited to 'arch_init.c')
-rw-r--r-- | arch_init.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch_init.c b/arch_init.c index 4ef5a15..c2cbc71 100644 --- a/arch_init.c +++ b/arch_init.c @@ -142,7 +142,7 @@ int qemu_read_default_config_files(bool userconfig) return ret; } } - + return 0; } @@ -1103,11 +1103,16 @@ int qemu_uuid_parse(const char *str, uint8_t *uuid) return 0; } -void do_acpitable_option(const char *optarg) +void do_acpitable_option(const QemuOpts *opts) { #ifdef TARGET_I386 - if (acpi_table_add(optarg) < 0) { - fprintf(stderr, "Wrong acpi table provided\n"); + Error *err = NULL; + + acpi_table_add(opts, &err); + if (err) { + fprintf(stderr, "Wrong acpi table provided: %s\n", + error_get_pretty(err)); + error_free(err); exit(1); } #endif |