]> git.proxmox.com Git - mirror_qemu.git/commitdiff
s390x: no deprecation warning while testing
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 12 Nov 2015 15:46:09 +0000 (16:46 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 1 Dec 2015 08:57:27 +0000 (09:57 +0100)
'make check' tries to start all available machines; the deprecation
message for the s390-virtio machine is both useless and annoying
there. Silence it while testing.

Reported-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
hw/s390x/s390-virtio.c

index 51dc0a8aafaca762c76fe2be1b16ba2e670e875c..ae55760d64c34dadbe57eca16ad5572248ec1aaf 100644 (file)
@@ -33,6 +33,7 @@
 #include "hw/virtio/virtio.h"
 #include "sysemu/kvm.h"
 #include "exec/address-spaces.h"
+#include "sysemu/qtest.h"
 
 #include "hw/s390x/s390-virtio-bus.h"
 #include "hw/s390x/sclp.h"
@@ -268,9 +269,11 @@ static void s390_init(MachineState *machine)
     hwaddr virtio_region_len;
     hwaddr virtio_region_start;
 
-    error_printf("WARNING\n"
-                 "The s390-virtio machine (non-ccw) is deprecated.\n"
-                 "It will be removed in 2.6. Please use s390-ccw-virtio\n");
+    if (!qtest_enabled()) {
+        error_printf("WARNING\n"
+                     "The s390-virtio machine (non-ccw) is deprecated.\n"
+                     "It will be removed in 2.6. Please use s390-ccw-virtio\n");
+    }
 
     if (machine->ram_slots) {
         error_report("Memory hotplug not supported by the selected machine.");