[PATCH v3 37/74] util/thread-context: fix property typenames

Marc-André Lureau <[email protected]>
Newsgroups org.nongnu.qemu-devel
Message-ID <[email protected]>
"thread-id" uses visit_type_uint64, "cpu-affinity" and
"node-affinity" use visit_type_uint16List, not visit_type_int.

Fixes: e2de2c497e57 ("util: Introduce ThreadContext user-creatable object")
Signed-off-by: Marc-André Lureau <[email protected]>
---
 util/thread-context.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/util/thread-context.c b/util/thread-context.c
index 0146154fa56b..88d8f0a55a4e 100644
--- a/util/thread-context.c
+++ b/util/thread-context.c
@@ -278,13 +278,13 @@ static void thread_context_class_init(ObjectClass *oc, const void *data)
     UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
 
     ucc->complete = thread_context_instance_complete;
-    object_class_property_add(oc, "thread-id", "int",
+    object_class_property_add(oc, "thread-id", "uint64",
                               thread_context_get_thread_id, NULL, NULL,
                               NULL);
-    object_class_property_add(oc, "cpu-affinity", "int",
+    object_class_property_add(oc, "cpu-affinity", "[uint16]",
                               thread_context_get_cpu_affinity,
                               thread_context_set_cpu_affinity, NULL, NULL);
-    object_class_property_add(oc, "node-affinity", "int", NULL,
+    object_class_property_add(oc, "node-affinity", "[uint16]", NULL,
                               thread_context_set_node_affinity, NULL, NULL);
 }
 

-- 
2.55.0.543.g5ebe2ebe4ea8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.