From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqh4v-0005x9-Av for qemu-devel@nongnu.org; Fri, 08 May 2015 08:08:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yqh4p-00042I-TR for qemu-devel@nongnu.org; Fri, 08 May 2015 08:08:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqh4p-00041M-Kr for qemu-devel@nongnu.org; Fri, 08 May 2015 08:08:23 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t48C8NAU014751 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 8 May 2015 08:08:23 -0400 From: Paolo Bonzini Date: Fri, 8 May 2015 14:07:53 +0200 Message-Id: <1431086881-17922-9-git-send-email-pbonzini@redhat.com> In-Reply-To: <1431086881-17922-1-git-send-email-pbonzini@redhat.com> References: <1431086881-17922-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 08/16] qom: fix typename of 'policy' enum property in hostmem obj List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: "Daniel P. Berrange" The 'policy' property was being registered with a typename of 'str', but it is in fact an enum of the 'HostMemPolicy' type. Signed-off-by: Daniel P. Berrange Message-Id: <1430476206-26034-2-git-send-email-berrange@redhat.com> Signed-off-by: Paolo Bonzini --- backends/hostmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/hostmem.c b/backends/hostmem.c index b7b6cf8..f6db33c 100644 --- a/backends/hostmem.c +++ b/backends/hostmem.c @@ -252,7 +252,7 @@ static void host_memory_backend_init(Object *obj) object_property_add(obj, "host-nodes", "int", host_memory_backend_get_host_nodes, host_memory_backend_set_host_nodes, NULL, NULL, NULL); - object_property_add(obj, "policy", "str", + object_property_add(obj, "policy", "HostMemPolicy", host_memory_backend_get_policy, host_memory_backend_set_policy, NULL, NULL, NULL); } -- 2.3.5