]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/x86: replace snprint() by g_strdup_printf() in drive_del-test
authorMichael Labiuk <michael.labiuk@virtuozzo.com>
Thu, 29 Sep 2022 22:35:45 +0000 (01:35 +0300)
committerThomas Huth <thuth@redhat.com>
Tue, 11 Oct 2022 12:06:55 +0000 (14:06 +0200)
commit5356d752ed9e1115c763b8d470812bb7dd912e54
treef35ff220682bc4a265822159d3a370a73132d60e
parentcb06b3d924a97312c2fb89ddcf1c1f347d040aa9
tests/x86: replace snprint() by g_strdup_printf() in drive_del-test

Using g_autofree char* and  g_strdup_printf(...) instead of ugly
snprintf on stack array.

Signed-off-by: Michael Labiuk <michael.labiuk@virtuozzo.com>
Message-Id: <20220929223547.1429580-8-michael.labiuk@virtuozzo.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/drive_del-test.c