Skip to contentSkip to conversation

QOM devices patch queue 2015-03-31

GIT PULL Applied Andreas Färber 2 participants 3 messages Mar 31, 2015

lore
Share & tools
lore
#1 lore raw

[Qemu-devel] [PULL 1/1] qom: Fix object_property_add_alias() with [*]

In reply to Andreas Färber

Commit 8074264 (qom: Add description field in ObjectProperty struct) introduced property descriptions and copied them for alias properties.

Instead of using the caller-supplied property name, use the returned property name for setting the description. This avoids an Error when setting a property description for a property with literal "[*]" that doesn't exist due to automatic property naming in object_property_add().

---
 qom/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qom/object.c +1 -1
index d167038..b8dff43 100644
@@ -1761,7 +1761,7 @@ void object_property_add_alias(Object *obj, const char *name,
     }
     op->resolve = property_resolve_alias;
 
-    object_property_set_description(obj, name,
+    object_property_set_description(obj, op->name,
                                     target_prop->description,
                                     &error_abort);
 
Signature · 1 line
2.1.4
#0 lore raw

Hello Peter,

This is my QOM (devices) patch queue. Please pull.

Regards,
Andreas

Cc Peter Maydell <[email protected]>

The following changes since commit adbeb458eece2263039e5a1f6501b87ae3713319:

Merge remote-tracking branch 'remotes/bkoppelmann/tags/pull-tricore-20150330' into staging (2015-03-31 09:56:48 +0100)

are available in the git repository at:

git://github.com/afaerber/qemu-cpu.git tags/qom-devices-for-peter

for you to fetch changes up to a18bb417e954ceea0a30b46c38b0d58c3a7ca6a1:

qom: Fix object_property_add_alias() with [*] (2015-03-31 12:56:48 +0200)

----------------------------------------------------------------
QOM infrastructure fixes and device conversions

* Fix for adding alias properties with [*]

----------------------------------------------------------------
Andreas Färber (1):
qom: Fix object_property_add_alias() with [*]

 qom/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#2 lore raw
Quoted 17 lines · Andreas Färber

Hello Peter,

This is my QOM (devices) patch queue. Please pull.

Regards,
Andreas

Cc Peter Maydell <[email protected]>

The following changes since commit adbeb458eece2263039e5a1f6501b87ae3713319:

Merge remote-tracking branch 'remotes/bkoppelmann/tags/pull-tricore-20150330' into staging (2015-03-31 09:56:48 +0100)

are available in the git repository at:

git://github.com/afaerber/qemu-cpu.git tags/qom-devices-for-peter

Quoted 8 lines

for you to fetch changes up to a18bb417e954ceea0a30b46c38b0d58c3a7ca6a1:

qom: Fix object_property_add_alias() with [*] (2015-03-31 12:56:48 +0200)

----------------------------------------------------------------
QOM infrastructure fixes and device conversions

* Fix for adding alias properties with [*]

Applied, thanks.

-- PMM