[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] hw/core: Remove use of QERR_FEATURE_DISABLED
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/5] hw/core: Remove use of QERR_FEATURE_DISABLED |
Date: |
Sat, 30 Oct 2021 01:01:44 +0200 |
QERR_FEATURE_DISABLED definition is obsolete since 2015 (commit
4629ed1e989, "qerror: Finally unused, clean up"). Replace it.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
hw/core/machine-qmp-cmds.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/core/machine-qmp-cmds.c b/hw/core/machine-qmp-cmds.c
index 216fdfaf3a0..f2eff433bf0 100644
--- a/hw/core/machine-qmp-cmds.c
+++ b/hw/core/machine-qmp-cmds.c
@@ -138,7 +138,8 @@ HotpluggableCPUList *qmp_query_hotpluggable_cpus(Error
**errp)
MachineClass *mc = MACHINE_GET_CLASS(ms);
if (!mc->has_hotpluggable_cpus) {
- error_setg(errp, QERR_FEATURE_DISABLED, "query-hotpluggable-cpus");
+ error_setg(errp,
+ "The feature 'query-hotpluggable-cpus' is not enabled");
return NULL;
}
--
2.31.1