diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-02-20 20:39:25 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-03-22 14:40:51 +0400 |
commit | 9edc6313da34699ebd2bae4573ea22339b26450a (patch) | |
tree | c04eb27a7ce157789496b078b824c8eae8ddba05 /hw/net | |
parent | e7b794282264868d84b3d9a5da222b08a783d8fb (diff) | |
download | qemu-9edc6313da34699ebd2bae4573ea22339b26450a.zip qemu-9edc6313da34699ebd2bae4573ea22339b26450a.tar.gz qemu-9edc6313da34699ebd2bae4573ea22339b26450a.tar.bz2 |
Replace GCC_FMT_ATTR with G_GNUC_PRINTF
One less qemu-specific macro. It also helps to make some headers/units
only depend on glib, and thus moved in standalone projects eventually.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/rocker/rocker.h | 2 | ||||
-rw-r--r-- | hw/net/rtl8139.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h index 412fa44..f85354d 100644 --- a/hw/net/rocker/rocker.h +++ b/hw/net/rocker/rocker.h @@ -30,7 +30,7 @@ fprintf(stderr, "%s ROCKER: " fmt, nowstr, ## __VA_ARGS__);\ } while (0) #else -static inline GCC_FMT_ATTR(1, 2) int DPRINTF(const char *fmt, ...) +static inline G_GNUC_PRINTF(1, 2) int DPRINTF(const char *fmt, ...) { return 0; } diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index 90b4fc6..6b65823 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -86,7 +86,7 @@ # define DPRINTF(fmt, ...) \ do { fprintf(stderr, "RTL8139: " fmt, ## __VA_ARGS__); } while (0) #else -static inline GCC_FMT_ATTR(1, 2) int DPRINTF(const char *fmt, ...) +static inline G_GNUC_PRINTF(1, 2) int DPRINTF(const char *fmt, ...) { return 0; } |