diff options
| author | Hani Benhabiles | 2014-02-25 08:10:05 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2014-02-28 19:39:25 +0100 |
| commit | ffe9fe3a25b93c045acc4d929056f8ea776a160a (patch) | |
| tree | 25cf21446315631fd5f3e971cc5effcef226f184 /include/qapi | |
| parent | qmp: Check for returned data from __json_read in get_events (diff) | |
| download | qemu-ffe9fe3a25b93c045acc4d929056f8ea776a160a.tar.gz qemu-ffe9fe3a25b93c045acc4d929056f8ea776a160a.tar.xz qemu-ffe9fe3a25b93c045acc4d929056f8ea776a160a.zip | |
qerror: Improve QERR_DEVICE_NOT_ACTIVE message
The error message as currently used is confusing as there are no "balloon" or
"spice" devices.
(qemu) balloon 1024
balloon: Device 'balloon' has not been activated
With this patch:
(qemu) balloon 1024
balloon: No balloon device has been activated
Signed-off-by: Hani Benhabiles <hani@linux.com>
Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include/qapi')
| -rw-r--r-- | include/qapi/qmp/qerror.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qapi/qmp/qerror.h b/include/qapi/qmp/qerror.h index 73c67b70c2..25193c943b 100644 --- a/include/qapi/qmp/qerror.h +++ b/include/qapi/qmp/qerror.h @@ -105,7 +105,7 @@ void qerror_report_err(Error *err); ERROR_CLASS_GENERIC_ERROR, "Device '%s' does not support hotplugging" #define QERR_DEVICE_NOT_ACTIVE \ - ERROR_CLASS_DEVICE_NOT_ACTIVE, "Device '%s' has not been activated" + ERROR_CLASS_DEVICE_NOT_ACTIVE, "No %s device has been activated" #define QERR_DEVICE_NOT_ENCRYPTED \ ERROR_CLASS_GENERIC_ERROR, "Device '%s' is not encrypted" |
