mirror of https://gitee.com/openkylin/qemu.git
qemu-log: Add GCC format attribute
The new inline function qemu_log_vprintf should use this attribute. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
4e469a438f
commit
726f8cbf86
|
@ -51,7 +51,8 @@ void GCC_FMT_ATTR(1, 2) qemu_log(const char *fmt, ...);
|
||||||
|
|
||||||
/* vfprintf-like logging function
|
/* 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) {
|
if (qemu_logfile) {
|
||||||
vfprintf(qemu_logfile, fmt, va);
|
vfprintf(qemu_logfile, fmt, va);
|
||||||
|
|
Loading…
Reference in New Issue