Skip to content

Commit

Permalink
qdev-monitor: fix error message in find_device_state()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Sementsov-Ogievskiy authored and mstsirkin committed Apr 9, 2024
1 parent f67d296 commit e199990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/qdev-monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e199990

Please sign in to comment.