From: Hani Benhabiles Date: Tue, 25 Feb 2014 07:10:05 +0000 (+0100) Subject: qerror: Improve QERR_DEVICE_NOT_ACTIVE message X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ffe9fe3a25b93c045acc4d929056f8ea776a160a;p=qemu.git 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 Suggested-by: Markus Armbruster Reviewed-by: Markus Armbruster Signed-off-by: Luiz Capitulino --- 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"