summaryrefslogtreecommitdiffstats
path: root/hw/core
diff options
context:
space:
mode:
authorEduardo Habkost2020-12-11 23:05:03 +0100
committerEduardo Habkost2020-12-15 16:02:07 +0100
commit5eb32b2113326f200b13047b2543bf2ab9c42cbb (patch)
tree8ce19aab94dba2170b7eaf629da68ec651b1f168 /hw/core
parentsparc: Check dev->realized at sparc_set_nwindows() (diff)
downloadqemu-5eb32b2113326f200b13047b2543bf2ab9c42cbb.tar.gz
qemu-5eb32b2113326f200b13047b2543bf2ab9c42cbb.tar.xz
qemu-5eb32b2113326f200b13047b2543bf2ab9c42cbb.zip
qdev: Don't use dev->id on set_size32() error message
All other qdev property error messages use "<type>.<property>" instead of "<id>.<property>". Change set_size32() for consistency, and to make the code not specific to TYPE_DEVICE. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201211220529.2290218-7-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/qdev-properties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-properties.c
index 67ae19df05..daf844c2d3 100644
--- a/hw/core/qdev-properties.c
+++ b/hw/core/qdev-properties.c
@@ -542,7 +542,7 @@ static void set_size32(Object *obj, Visitor *v, const char *name, void *opaque,
error_setg(errp,
"Property %s.%s doesn't take value %" PRIu64
" (maximum: %u)",
- dev->id ? : "", name, value, UINT32_MAX);
+ object_get_typename(obj), name, value, UINT32_MAX);
return;
}