projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e469a4
)
qemu-log: Add GCC format attribute
author
Stefan Weil
<sw@weilnetz.de>
Sat, 23 Jun 2012 18:41:10 +0000
(20:41 +0200)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sun, 24 Jun 2012 12:16:51 +0000
(12:16 +0000)
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>
qemu-log.h
patch
|
blob
|
history
diff --git
a/qemu-log.h
b/qemu-log.h
index 2ed19d1578ae21bbc54f50941764c0453a5454d6..4cdc7c7a4793319ebb63e5ac5cebe8fc920f7bbc 100644
(file)
--- a/
qemu-log.h
+++ b/
qemu-log.h
@@
-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);