mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
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>
This commit is contained in:
parent
d94e96e7cf
commit
d62449daf2
4 changed files with 8 additions and 3 deletions
|
@ -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, ...)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue