hw/core: Improve the query-hotpluggable-cpus error message
commit0ac02656e28b5e3f1d8ed6c123bd38036df95e9e
authorMarkus Armbruster <armbru@redhat.com>
Tue, 7 Feb 2023 07:51:13 +0000 (7 08:51 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 23 Feb 2023 13:10:17 +0000 (23 14:10 +0100)
treea1af4258adfe56e32555ee9b918ba47b4653b0e8
parent0ec8384f839844dfcccdc4784b30c9c9e7171b92
hw/core: Improve the query-hotpluggable-cpus error message

The QERR_ macros are leftovers from the days of "rich" error objects.
We've been trying to reduce their remaining use.

Get rid of a use of QERR_FEATURE_DISABLED, and improve the slightly
awkward error message

    (qemu) info hotpluggable-cpus
    Error: The feature 'query-hotpluggable-cpus' is not enabled

to

    Error: machine does not support hot-plugging CPUs

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230207075115.1525-11-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/core/machine-qmp-cmds.c