aboutsummaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorLin Ma <lma@suse.com>2017-01-25 13:27:03 +0800
committerMarkus Armbruster <armbru@redhat.com>2017-01-27 08:23:06 +0100
commit7a8c153f0e59cccdc0425cdebe43765008def01a (patch)
tree05d5f177f01881b8511df4f65079021f14b62674 /qmp.c
parent5d0c7f4f9e2d1fed53fcb2733aede71c9dcaf871 (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>
Diffstat (limited to 'qmp.c')
-rw-r--r--qmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmp.c b/qmp.c
index 0028f0b30e..886059ef94 100644
--- a/qmp.c
+++ b/qmp.c
@@ -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;
}