diff options
| author | Igor Mammedov | 2015-01-30 14:29:37 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-02-26 12:42:15 +0100 |
| commit | eae8bded9a1a19561054654f5113aeb978d7b4c1 (patch) | |
| tree | d9239bca02c88ed57f250deb4857fa8aeeb041df /include | |
| parent | acpi: move generic aml building helpers into dedictated file (diff) | |
| download | qemu-eae8bded9a1a19561054654f5113aeb978d7b4c1.tar.gz qemu-eae8bded9a1a19561054654f5113aeb978d7b4c1.tar.xz qemu-eae8bded9a1a19561054654f5113aeb978d7b4c1.zip | |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index e6a0b28990..fd506252bd 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); |
