diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-05-30 19:57:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-05-30 23:59:49 -0400 |
commit | 3a9351b57e528b1d0bd2e72bcf78db7c91b2ff8f (patch) | |
tree | d52e3eb45e5ed0b32d9ae3af06daf9646c1a05e3 /src/common | |
parent | e28489467233bff4500a70f8a7b22e42ca3b3e68 (diff) | |
download | tor-3a9351b57e528b1d0bd2e72bcf78db7c91b2ff8f.tar.gz tor-3a9351b57e528b1d0bd2e72bcf78db7c91b2ff8f.zip |
Fix more clang format-nonliteral warnings (bug 5969)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/log.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index ac98f13539..f2999f4e66 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -137,6 +137,13 @@ static void close_log(logfile_t *victim); static char *domain_to_string(log_domain_mask_t domain, char *buf, size_t buflen); +static INLINE char *format_msg(char *buf, size_t buf_len, + log_domain_mask_t domain, int severity, const char *funcname, + const char *format, va_list ap, size_t *msg_len_out) + CHECK_PRINTF(6,0); +static void logv(int severity, log_domain_mask_t domain, const char *funcname, + const char *format, va_list ap) + CHECK_PRINTF(4,0); /** Name of the application: used to generate the message we write at the * start of each new log. */ |