summary refs log tree commit diff stats
path: root/hw/core/machine-qmp-cmds.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2023-02-07 08:51:07 +0100
committerMarkus Armbruster <armbru@redhat.com>2023-02-23 14:10:17 +0100
commita0d0267779850f0dee70656dd7c0d11a458bfbaa (patch)
treecff722c8bee55bb86dd8cf2a11be1688e8207b27 /hw/core/machine-qmp-cmds.c
parentf1a4697c236aae8f7d13042e4c6a31c228aa8595 (diff)
downloadfocaccia-qemu-a0d0267779850f0dee70656dd7c0d11a458bfbaa.tar.gz
focaccia-qemu-a0d0267779850f0dee70656dd7c0d11a458bfbaa.zip
hw/core: Improve error message when machine doesn't provide NMIs
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_UNSUPPORTED, and improve the rather vague
error message

    (qemu) nmi
    Error: this feature or command is not currently supported

to

    Error: machine does not provide NMIs

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230207075115.1525-5-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hw/core/machine-qmp-cmds.c')
0 files changed, 0 insertions, 0 deletions