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
@ -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…
Reference in New Issue
Block a user