summary refs log tree commit diff stats
path: root/system/qdev-monitor.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2024-03-29 21:37:55 +0300
committerMichael S. Tsirkin <mst@redhat.com>2024-04-09 02:31:33 -0400
commite1999904a960c33b68fedf26dfb7b8e00abab8f2 (patch)
tree0057f36d106f72d92169ebccb932708f122494a9 /system/qdev-monitor.c
parentf67d296b6ea0e946e4ca13a39c699ca13bd977b6 (diff)
downloadfocaccia-qemu-e1999904a960c33b68fedf26dfb7b8e00abab8f2.tar.gz
focaccia-qemu-e1999904a960c33b68fedf26dfb7b8e00abab8f2.zip
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>
Diffstat (limited to 'system/qdev-monitor.c')
-rw-r--r--system/qdev-monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/qdev-monitor.c b/system/qdev-monitor.c
index c1243891c3..840177d19f 100644
--- a/system/qdev-monitor.c
+++ b/system/qdev-monitor.c
@@ -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;
     }