summary refs log tree commit diff stats
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2014-12-19 11:47:00 +0000
committerMichael S. Tsirkin <mst@redhat.com>2015-01-27 14:46:17 +0200
commit6d848641b7a4da92840fb2f5c240d1668f5a9281 (patch)
treece345d393326dc06dd492704311356a7cadb490c /scripts/qapi-types.py
parente909c16d924c0dbb852de3c0dd3d9cb5213b90c5 (diff)
downloadfocaccia-qemu-6d848641b7a4da92840fb2f5c240d1668f5a9281.tar.gz
focaccia-qemu-6d848641b7a4da92840fb2f5c240d1668f5a9281.zip
acpi: build_append_nameseg(): add padding if necessary
According to ACPI spec NameSeg shorter than 4 characters
must be padded up to 4 characters with "_" symbol.
ACPI 5.0:  20.2.2 "Name Objects Encoding"

Do it in build_append_nameseg() so that caller shouldn't know
or care about it.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions