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/ahci-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/ahci-test.c')
-rw-r--r-- | tests/qtest/ahci-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qtest/ahci-test.c b/tests/qtest/ahci-test.c index 66652fe..1967cd5 100644 --- a/tests/qtest/ahci-test.c +++ b/tests/qtest/ahci-test.c @@ -154,6 +154,7 @@ static void ahci_migrate(AHCIQState *from, AHCIQState *to, const char *uri) /** * Start a Q35 machine and bookmark a handle to the AHCI device. */ +G_GNUC_PRINTF(1, 0) static AHCIQState *ahci_vboot(const char *cli, va_list ap) { AHCIQState *s; @@ -171,6 +172,7 @@ static AHCIQState *ahci_vboot(const char *cli, va_list ap) /** * Start a Q35 machine and bookmark a handle to the AHCI device. */ +G_GNUC_PRINTF(1, 2) static AHCIQState *ahci_boot(const char *cli, ...) { AHCIQState *s; @@ -209,6 +211,7 @@ static void ahci_shutdown(AHCIQState *ahci) * Boot and fully enable the HBA device. * @see ahci_boot, ahci_pci_enable and ahci_hba_enable. */ +G_GNUC_PRINTF(1, 2) static AHCIQState *ahci_boot_and_enable(const char *cli, ...) { AHCIQState *ahci; |