]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ivshmem, qdev-monitor: fix order of qerror parameters
authorAlberto Garcia <agarcia@igalia.com>
Tue, 14 Aug 2012 11:41:28 +0000 (14:41 +0300)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 15 Aug 2012 14:37:08 +0000 (15:37 +0100)
Now that the QERR_ macros no longer contain a json dictionary,
the order of some parameters needs to be fixed for them to appear
correctly.

Signed-off-by: Alberto Garcia <agarcia@igalia.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
hw/ivshmem.c
hw/qdev-monitor.c

index 0c58161565e4e960787aac32b59e78c1de583dc7..b4d65a6db5b29d246f8a51aa582e4816db2bf41a 100644 (file)
@@ -677,7 +677,8 @@ static int pci_ivshmem_init(PCIDevice *dev)
     }
 
     if (s->role_val == IVSHMEM_PEER) {
-        error_set(&s->migration_blocker, QERR_DEVICE_FEATURE_BLOCKS_MIGRATION, "ivshmem", "peer mode");
+        error_set(&s->migration_blocker, QERR_DEVICE_FEATURE_BLOCKS_MIGRATION,
+                  "peer mode", "ivshmem");
         migrate_add_blocker(s->migration_blocker);
     }
 
index b22a37a00c34ad7562173db903707d4bc9c50014..018b386782b0c3a681876c88ee2b5ae9e2c8b8a6 100644 (file)
@@ -443,7 +443,7 @@ DeviceState *qdev_device_add(QemuOpts *opts)
         bus = qbus_find_recursive(sysbus_get_default(), NULL, k->bus_type);
         if (!bus) {
             qerror_report(QERR_NO_BUS_FOR_DEVICE,
-                          driver, k->bus_type);
+                          k->bus_type, driver);
             return NULL;
         }
     }