qdev-monitor: fix error message in find_device_state()
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Fri, 29 Mar 2024 18:37:55 +0000 (21:37 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Apr 2024 06:31:33 +0000 (02:31 -0400)
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>
system/qdev-monitor.c

index c1243891c38f470d88457e871511a017542227f2..840177d19f01735c6f2a748ac24e198f3d18c559 100644 (file)
@@ -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;
     }