diff options
author | Lin Ma <lma@suse.com> | 2017-01-25 13:27:03 +0800 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-01-27 08:23:06 +0100 |
commit | 7a8c153f0e59cccdc0425cdebe43765008def01a (patch) | |
tree | 05d5f177f01881b8511df4f65079021f14b62674 | |
parent | 5d0c7f4f9e2d1fed53fcb2733aede71c9dcaf871 (diff) |
qmp: Fix argument name in error message of device-list-properties
The argument is called "typename", not "name".
[Thanks to Markus for correcting the commit message]
Signed-off-by: Lin Ma <lma@suse.com>
Message-Id: <20170125052703.23571-1-lma@suse.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | qmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -531,12 +531,12 @@ DevicePropertyInfoList *qmp_device_list_properties(const char *typename, klass = object_class_dynamic_cast(klass, TYPE_DEVICE); if (klass == NULL) { - error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "name", TYPE_DEVICE); + error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "typename", TYPE_DEVICE); return NULL; } if (object_class_is_abstract(klass)) { - error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "name", + error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "typename", "non-abstract device type"); return NULL; } |