diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-12-19 08:02:01 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-01-11 10:44:33 +0100 |
commit | d62449daf237ee2a48aa61931dde6ab5df0ee282 (patch) | |
tree | 4d0de3814aa31932e759282804dc28f4c3baec4b /hw | |
parent | d94e96e7cf02c8fe3e5ea75da5216b4bad79aa9e (diff) | |
download | qemu-d62449daf237ee2a48aa61931dde6ab5df0ee282.zip qemu-d62449daf237ee2a48aa61931dde6ab5df0ee282.tar.gz qemu-d62449daf237ee2a48aa61931dde6ab5df0ee282.tar.bz2 |
hw/xen: use G_GNUC_PRINTF/SCANF for various functions
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <20221219130205.687815-3-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xen/xen-bus.c | 1 | ||||
-rw-r--r-- | hw/xen/xen_pvdev.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/hw/xen/xen-bus.c b/hw/xen/xen-bus.c index 645a29a..df3f6b9 100644 --- a/hw/xen/xen-bus.c +++ b/hw/xen/xen-bus.c @@ -561,6 +561,7 @@ void xen_device_backend_printf(XenDevice *xendev, const char *key, } } +G_GNUC_SCANF(3, 4) static int xen_device_backend_scanf(XenDevice *xendev, const char *key, const char *fmt, ...) { diff --git a/hw/xen/xen_pvdev.c b/hw/xen/xen_pvdev.c index 037152f..1a5177b 100644 --- a/hw/xen/xen_pvdev.c +++ b/hw/xen/xen_pvdev.c @@ -196,6 +196,7 @@ const char *xenbus_strstate(enum xenbus_state state) * 2 == noisy debug messages (logfile only). * 3 == will flood your log (logfile only). */ +G_GNUC_PRINTF(3, 0) static void xen_pv_output_msg(struct XenLegacyDevice *xendev, FILE *f, const char *fmt, va_list args) { |