]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/qemu-xen.git/commitdiff
mac99: Use MACHINE_TYPE_NAME to encode class name
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 20 Aug 2015 21:54:34 +0000 (14:54 -0700)
committerAndreas Färber <afaerber@suse.de>
Sat, 19 Sep 2015 14:39:13 +0000 (16:39 +0200)
It will result in exactly the same class name, but it will make the code
consistent with the other classes.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/ppc/mac_newworld.c

index 3c82be2e1810cca68b49adee30f7b6c8d114436a..31c40c9ff08fdd22760b5faf3273f4f58c1761f9 100644 (file)
@@ -517,7 +517,7 @@ static void core99_machine_class_init(ObjectClass *oc, void *data)
 }
 
 static const TypeInfo core99_machine_info = {
-    .name          = "mac99-machine",
+    .name          = MACHINE_TYPE_NAME("mac99"),
     .parent        = TYPE_MACHINE,
     .class_init    = core99_machine_class_init,
 };