qemu-log: Add GCC format attribute
PATCH 1/1 qemu-log: Add GCC format attribute
The new inline function qemu_log_vprintf should use this attribute.
Signed-off-by Stefan Weil <[email protected]>
--- qemu-log.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
qemu-log.h +2 -1
@@ -51,7 +51,8 @@ void GCC_FMT_ATTR(1, 2) qemu_log(const char *fmt, ...);/* vfprintf-like logging function */ -static inline void qemu_log_vprintf (const char *fmt,va_list va) +static inline void GCC_FMT_ATTR(1, 0) +qemu_log_vprintf(const char *fmt, va_list va) { if (qemu_logfile) { vfprintf(qemu_logfile, fmt, va);
Signature · 1 line
1.7.10
Blue Swirl
AppliedThanks, applied.
Quoted 24 lines · Stefan Weil
The new inline function
qemu_log_vprintfshould use this attribute.Signed-off-by Stefan Weil <[email protected]>---
qemu-log.h | 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)qemu-log.h +2
-2@@ -51,7 +51,8 @@ void GCC_FMT_ATTR(1, 2) qemu_log(const char *fmt, ...); /* vfprintf-like logging function*/ -static inline void qemu_log_vprintf (const char *fmt,va_list va) +static inline void GCC_FMT_ATTR(1, 0) +qemu_log_vprintf(const char *fmt, va_list va) { if (qemu_logfile) { vfprintf(qemu_logfile, fmt, va); --1.7.10