[Sheepdog] [PATCH 06/12] add a format attribute to the functions which have a format parameter
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri May 21 13:42:33 CEST 2010
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
lib/logger.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/logger.c b/lib/logger.c
index ce324f8..65c1d42 100644
--- a/lib/logger.c
+++ b/lib/logger.c
@@ -38,6 +38,11 @@
#define logdbg(file, fmt, args...) do {} while (0)
#endif
+static int log_enqueue(int prio, const char *func, int line, const char *fmt,
+ va_list ap) __attribute__ ((format (printf, 4, 0)));
+static void dolog(int prio, const char *func, int line, const char *fmt,
+ va_list ap) __attribute__ ((format (printf, 4, 0)));
+
static struct logarea *la;
static char *log_name;
static int log_level;
--
1.5.6.5
More information about the sheepdog
mailing list