mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
error: Use QERR_INVALID_PARAMETER_VALUE instead of QERR_INVALID_PARAMETER
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
c389c43ee5
commit
e17ba87c52
2 changed files with 5 additions and 3 deletions
|
@ -207,7 +207,7 @@ DeviceState *qdev_device_add(QemuOpts *opts)
|
|||
/* find driver */
|
||||
info = qdev_find_info(NULL, driver);
|
||||
if (!info || info->no_user) {
|
||||
qerror_report(QERR_INVALID_PARAMETER, "driver");
|
||||
qerror_report(QERR_INVALID_PARAMETER_VALUE, "driver", "a driver name");
|
||||
error_printf_unless_qmp("Try with argument '?' for a list.\n");
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue