diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-05-27 19:55:55 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-05-31 20:24:07 +0200 |
commit | c3bdc56c183f6ca6baa502bd7861583ca98b333b (patch) | |
tree | 80f533b97c56061153c887d243c9dad321eb2831 /hw/tpm | |
parent | ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4 (diff) | |
download | hqemu-c3bdc56c183f6ca6baa502bd7861583ca98b333b.zip hqemu-c3bdc56c183f6ca6baa502bd7861583ca98b333b.tar.gz |
acpi: Simplify printing to dynamic string
build_append_namestringv() and aml_string() first calculate the
resulting string's length with vsnprintf(NULL, ...), then allocate,
then print for real. Simply use g_strdup_vprintf() or g_vasprintf()
instead.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'hw/tpm')
0 files changed, 0 insertions, 0 deletions