mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qdev-monitor: fix error message in find_device_state()
This "hotpluggable" here is misleading. Actually we check is object a device or not. Let's drop the word. Suggested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20240329183758.3360733-3-vsementsov@yandex-team.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
f67d296b6e
commit
e1999904a9
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ static DeviceState *find_device_state(const char *id, Error **errp)
|
|||
|
||||
dev = (DeviceState *)object_dynamic_cast(obj, TYPE_DEVICE);
|
||||
if (!dev) {
|
||||
error_setg(errp, "%s is not a hotpluggable device", id);
|
||||
error_setg(errp, "%s is not a device", id);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue