summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2015-01-30 13:29:37 +0000
committerMichael S. Tsirkin <mst@redhat.com>2015-02-26 12:42:15 +0100
commiteae8bded9a1a19561054654f5113aeb978d7b4c1 (patch)
treed9239bca02c88ed57f250deb4857fa8aeeb041df /include
parent19934e0e3d0f70eefe8d9e51e71c1cb80f4659d0 (diff)
downloadhqemu-eae8bded9a1a19561054654f5113aeb978d7b4c1.zip
hqemu-eae8bded9a1a19561054654f5113aeb978d7b4c1.tar.gz
acpi: add build_append_namestring() helper
Use build_append_namestring() instead of build_append_nameseg() So user won't have to care whether name is NameSeg, NamePath or NameString. See for reference ACPI 5.0: 20.2.2 Name Objects Encoding Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/acpi/aml-build.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index e6a0b28..fd50625 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -12,7 +12,7 @@ void build_append_byte(GArray *array, uint8_t val);
void build_append_array(GArray *array, GArray *val);
void GCC_FMT_ATTR(2, 3)
-build_append_nameseg(GArray *array, const char *format, ...);
+build_append_namestring(GArray *array, const char *format, ...);
void build_prepend_package_length(GArray *package, unsigned min_bytes);
void build_package(GArray *package, uint8_t op, unsigned min_bytes);
OpenPOWER on IntegriCloud