mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-07 09:48:48 +00:00
log: Use proper format attribute for spice_log
SPICE_ATTR_PRINTF uses __printf__ format attribute. spice_log internally uses g_string_append_vprintf which uses G_GNUC_PRINTF attribute. G_GNUC_PRINTF can be __printf__ or gnu_printf format which in some systems (currently Windows) can be different. GLib 2.58 changed G_GNUC_PRINTF on Windows from using __printf__ attribute to gnu_printf. To avoid problems in the future uses G_GNUC_PRINTF instead of SPICE_ATTR_PRINTF for spice_log. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
2d32025f77
commit
6dc745e877
@ -37,7 +37,7 @@ void spice_log(GLogLevelFlags log_level,
|
||||
const char *strloc,
|
||||
const char *function,
|
||||
const char *format,
|
||||
...) SPICE_ATTR_PRINTF(4, 5);
|
||||
...) G_GNUC_PRINTF(4, 5);
|
||||
|
||||
#define spice_return_if_fail(x) G_STMT_START { \
|
||||
if G_LIKELY(x) { } else { \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user