From 73093354418602a2ff5e43cb91a21b17fbf047d8 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Wed, 25 Jan 2012 13:37:36 -0600 Subject: qdev: change ambiguous qdev names Reported-by: Blue Swirl Signed-off-by: Anthony Liguori --- qom/object.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qom') diff --git a/qom/object.c b/qom/object.c index ef37e08..a12895f 100644 --- a/qom/object.c +++ b/qom/object.c @@ -87,6 +87,11 @@ TypeImpl *type_register(const TypeInfo *info) g_assert(info->name != NULL); + if (type_table_lookup(info->name) != NULL) { + fprintf(stderr, "Registering `%s' which already exists\n", info->name); + abort(); + } + ti->name = g_strdup(info->name); ti->parent = g_strdup(info->parent); -- cgit v1.1