summaryrefslogtreecommitdiffstats
path: root/hw/s390x
diff options
context:
space:
mode:
authorEduardo Habkost2020-12-11 23:05:15 +0100
committerEduardo Habkost2020-12-18 21:20:17 +0100
commite68c2cb75af2960dc6ad9705e71ab9cd97b901f6 (patch)
tree0a1a6a4c923be21946272df8d8efe8d157d6cd4a /hw/s390x
parentsparc: Use DEFINE_PROP for nwindows property (diff)
downloadqemu-e68c2cb75af2960dc6ad9705e71ab9cd97b901f6.tar.gz
qemu-e68c2cb75af2960dc6ad9705e71ab9cd97b901f6.tar.xz
qemu-e68c2cb75af2960dc6ad9705e71ab9cd97b901f6.zip
qdev: Get just property name at error_set_from_qdev_prop_error()
Replace `Property *prop` parameter with `char *name`, to reduce dependency of getter and setter functions on the Property struct (which will be changed in following patches). Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20201211220529.2290218-19-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r--hw/s390x/css.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/s390x/css.c b/hw/s390x/css.c
index 38fd46b9a9..7a44320d12 100644
--- a/hw/s390x/css.c
+++ b/hw/s390x/css.c
@@ -2390,7 +2390,7 @@ static void set_css_devid(Object *obj, Visitor *v, const char *name,
num = sscanf(str, "%2x.%1x%n.%4x%n", &cssid, &ssid, &n1, &devid, &n2);
if (num != 3 || (n2 - n1) != 5 || strlen(str) != n2) {
- error_set_from_qdev_prop_error(errp, EINVAL, obj, prop, str);
+ error_set_from_qdev_prop_error(errp, EINVAL, obj, name, str);
goto out;
}
if ((cssid > MAX_CSSID) || (ssid > MAX_SSID)) {