diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-12-19 08:02:04 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-01-11 10:44:34 +0100 |
commit | 0472b2e541971d162a9bbca7541c8f9299e9d78f (patch) | |
tree | b079e72362d542b920978da4297bc035bd237564 /tests/qtest/ivshmem-test.c | |
parent | beede7e848cc0ca30599644c19c078bbe3cd9d20 (diff) | |
download | qemu-0472b2e541971d162a9bbca7541c8f9299e9d78f.zip qemu-0472b2e541971d162a9bbca7541c8f9299e9d78f.tar.gz qemu-0472b2e541971d162a9bbca7541c8f9299e9d78f.tar.bz2 |
tests: add G_GNUC_PRINTF for various functions
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20221219130205.687815-6-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/qtest/ivshmem-test.c')
-rw-r--r-- | tests/qtest/ivshmem-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/ivshmem-test.c b/tests/qtest/ivshmem-test.c index cd550c8..9bf8e78 100644 --- a/tests/qtest/ivshmem-test.c +++ b/tests/qtest/ivshmem-test.c @@ -109,9 +109,9 @@ static void setup_vm_cmd(IVState *s, const char *cmd, bool msix) const char *arch = qtest_get_arch(); if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { - s->qs = qtest_pc_boot(cmd); + s->qs = qtest_pc_boot("%s", cmd); } else if (strcmp(arch, "ppc64") == 0) { - s->qs = qtest_spapr_boot(cmd); + s->qs = qtest_spapr_boot("%s", cmd); } else { g_printerr("ivshmem-test tests are only available on x86 or ppc64\n"); exit(EXIT_FAILURE); |