diff mbox

[08/10] mac99: Use MACHINE_TYPE_NAME to encode class name

Message ID 1440107676-17326-9-git-send-email-ehabkost@redhat.com
State New
Headers show

Commit Message

Eduardo Habkost Aug. 20, 2015, 9:54 p.m. UTC
It will result in exactly the same class name, but it will make the code
consistent with the other classes.

Cc: Alexander Graf <agraf@suse.de>
Cc: qemu-ppc@nongnu.org
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 hw/ppc/mac_newworld.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Gibson Aug. 30, 2015, 6:46 a.m. UTC | #1
On Thu, Aug 20, 2015 at 02:54:34PM -0700, Eduardo Habkost wrote:
> It will result in exactly the same class name, but it will make the code
> consistent with the other classes.
> 
> Cc: Alexander Graf <agraf@suse.de>
> Cc: qemu-ppc@nongnu.org
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>

> ---
>  hw/ppc/mac_newworld.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
> index 77d5c81..a6b8209 100644
> --- a/hw/ppc/mac_newworld.c
> +++ b/hw/ppc/mac_newworld.c
> @@ -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,
>  };
diff mbox

Patch

diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
index 77d5c81..a6b8209 100644
--- a/hw/ppc/mac_newworld.c
+++ b/hw/ppc/mac_newworld.c
@@ -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,
 };