summaryrefslogtreecommitdiffstats
path: root/hw/tpm/tpm_tis.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-05-27 19:55:55 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-05-31 20:24:07 +0200
commitc3bdc56c183f6ca6baa502bd7861583ca98b333b (patch)
tree80f533b97c56061153c887d243c9dad321eb2831 /hw/tpm/tpm_tis.h
parentea96bc629cbd52be98b2967a4b4f72e91dfc3ee4 (diff)
downloadhqemu-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/tpm_tis.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud