Jelajahi Sumber

vl: make machine type deprecation a warning

error_report should generally be followed by a failure; if we can proceed
anyway, that is just a warning and should be communicated properly to
the user with warn_report.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220511175043.27327-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini 3 tahun lalu
induk
melakukan
7adb75d6be
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      softmmu/vl.c

+ 1 - 1
softmmu/vl.c

@@ -3631,7 +3631,7 @@ void qemu_init(int argc, char **argv, char **envp)
 
 
     machine_class = MACHINE_GET_CLASS(current_machine);
     machine_class = MACHINE_GET_CLASS(current_machine);
     if (!qtest_enabled() && machine_class->deprecation_reason) {
     if (!qtest_enabled() && machine_class->deprecation_reason) {
-        error_report("Machine type '%s' is deprecated: %s",
+        warn_report("Machine type '%s' is deprecated: %s",
                      machine_class->name, machine_class->deprecation_reason);
                      machine_class->name, machine_class->deprecation_reason);
     }
     }