[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/6] qdev-monitor: fix error message in find_device_state()
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v2 2/6] qdev-monitor: fix error message in find_device_state() |
Date: |
Fri, 1 Mar 2024 20:11:39 +0300 |
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>
---
system/qdev-monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/qdev-monitor.c b/system/qdev-monitor.c
index a13db763e5..9febb743f1 100644
--- a/system/qdev-monitor.c
+++ b/system/qdev-monitor.c
@@ -890,7 +890,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;
}
--
2.34.1
- [PATCH v2 3/6] qdev-monitor: add option to report GenericError from find_device_state, (continued)
[PATCH v2 6/6] qapi: introduce CONFIG_READ event, Vladimir Sementsov-Ogievskiy, 2024/03/01
[PATCH v2 1/6] vhost-user-blk: simplify and fix vhost_user_blk_handle_config_change, Vladimir Sementsov-Ogievskiy, 2024/03/01
[PATCH v2 2/6] qdev-monitor: fix error message in find_device_state(),
Vladimir Sementsov-Ogievskiy <=
[PATCH v2 5/6] qapi: device-sync-config: check runstate, Vladimir Sementsov-Ogievskiy, 2024/03/01
[PATCH v2 4/6] qapi: introduce device-sync-config, Vladimir Sementsov-Ogievskiy, 2024/03/01