qcow2: Use a GString in report_unsupported_feature()
commit7cdca2e2337e82953495b907c60df3115a268428
authorAlberto Garcia <berto@igalia.com>
Wed, 15 Jan 2020 13:56:26 +0000 (15 14:56 +0100)
committerMax Reitz <mreitz@redhat.com>
Thu, 6 Feb 2020 12:47:45 +0000 (6 13:47 +0100)
treeeeb8ea7d8793e094532bbfde533e7e3f8e7865d3
parentcb8956144ccaccf23d5cc4167677e2c84fa5a9f8
qcow2: Use a GString in report_unsupported_feature()

This is a bit more efficient than having to allocate and free memory
for each item.

The default size (60) is enough for all the existing incompatible
features or the "Unknown incompatible feature" message.

Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200115135626.19442-1-berto@igalia.com
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c