console: use get_uint() for "head" property
TYPE_QEMU_CONSOLE property "head" is defined with object_property_add_uint*_ptr(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20170607163635.17635-41-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
709fa704f6
commit
ad664c1d4c
@ -1872,8 +1872,8 @@ QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head)
|
||||
if (DEVICE(obj) != dev) {
|
||||
continue;
|
||||
}
|
||||
h = object_property_get_int(OBJECT(consoles[i]),
|
||||
"head", &error_abort);
|
||||
h = object_property_get_uint(OBJECT(consoles[i]),
|
||||
"head", &error_abort);
|
||||
if (h != head) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user