projects
/
sdk
/
emulator
/
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
2ed19d1
..
4cdc7c7
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);