summary refs log tree commit diff stats
path: root/backends/hostmem-file.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-10-13 18:44:14 +0200
committerEduardo Habkost <ehabkost@redhat.com>2016-10-17 15:48:40 -0200
commitf279ee45832db52fb801e86a929bc53f575cd2f5 (patch)
tree1412bb102e24feea0b46bf14e68aa8c31b3281e6 /backends/hostmem-file.c
parent0975b8b823a888d474fa33821dfe84e6904db197 (diff)
downloadfocaccia-qemu-f279ee45832db52fb801e86a929bc53f575cd2f5.tar.gz
focaccia-qemu-f279ee45832db52fb801e86a929bc53f575cd2f5.zip
machine: Fix replacement of '_' by '-' in machine property names
machine_set_property() replaces '_' by '-' in the property name.
Except it fails to replace an initial '_'.  Screwed up in commit
b0ddb8b.  Reproducer: "-M pc,__foo_bar=true" produces "Property
'._-foo-bar' not found".

Error messages using a mangled name rather than the name the user
actually wrote is user-hostile, but that's a different topic.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'backends/hostmem-file.c')
0 files changed, 0 insertions, 0 deletions