diff options
author | Cristian Rodríguez <crrodriguez@opensuse.org> | 2013-04-02 04:02:58 -0300 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-25 21:50:48 -0400 |
commit | b1e2b33c5258f1cefcee55116ac5d049478c804d (patch) | |
tree | dc3e50cb79c51c85b2a16b825c89cc7bafeecbc7 /src/journal | |
parent | 750ef27274cdc274f8c6b9245d6ba0179c68fa50 (diff) |
Add some extra __attribute__ ((format)) s
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-server.h | 2 | ||||
-rw-r--r-- | src/journal/microhttpd-util.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h index fb4e8e4c3d..86f7145292 100644 --- a/src/journal/journald-server.h +++ b/src/journal/journald-server.h @@ -130,7 +130,7 @@ typedef struct Server { #define N_IOVEC_UDEV_FIELDS 32 void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigned m, struct ucred *ucred, struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority); -void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...); +void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) _printf_attr_(3,4); /* gperf lookup function */ const struct ConfigPerfItem* journald_gperf_lookup(const char *key, unsigned length); diff --git a/src/journal/microhttpd-util.h b/src/journal/microhttpd-util.h index d4fefa72d3..20ad76990c 100644 --- a/src/journal/microhttpd-util.h +++ b/src/journal/microhttpd-util.h @@ -23,4 +23,6 @@ #include <stdarg.h> -void microhttpd_logger(void *arg, const char *fmt, va_list ap); +#include "macro.h" + +void microhttpd_logger(void *arg, const char *fmt, va_list ap) _printf_attr_(2, 0); |