Ensure that all printf format strings are properly checked.

This commit is contained in:
Adam Sutton 2012-08-24 09:58:03 +01:00
parent 9bd40fcc38
commit f78fed927d
2 changed files with 6 additions and 3 deletions

View file

@ -48,7 +48,8 @@ void htsbuf_queue_flush(htsbuf_queue_t *hq);
void htsbuf_vqprintf(htsbuf_queue_t *hq, const char *fmt, va_list ap);
void htsbuf_qprintf(htsbuf_queue_t *hq, const char *fmt, ...);
void htsbuf_qprintf(htsbuf_queue_t *hq, const char *fmt, ...)
__attribute__((format(printf,2,3)));
void htsbuf_append(htsbuf_queue_t *hq, const void *buf, size_t len);

View file

@ -359,9 +359,11 @@ static inline unsigned int tvh_strhash(const char *s, unsigned int mod)
void tvh_str_set(char **strp, const char *src);
int tvh_str_update(char **strp, const char *src);
void tvhlog(int severity, const char *subsys, const char *fmt, ...);
void tvhlog(int severity, const char *subsys, const char *fmt, ...)
__attribute__((format(printf,3,4)));
void tvhlog_spawn(int severity, const char *subsys, const char *fmt, ...);
void tvhlog_spawn(int severity, const char *subsys, const char *fmt, ...)
__attribute__((format(printf,3,4)));
#define LOG_EMERG 0 /* system is unusable */
#define LOG_ALERT 1 /* action must be taken immediately */