0
0
mirror of https://github.com/darkk/redsocks.git synced 2025-08-26 03:35:30 +00:00

Fixed format string bug.

This commit is contained in:
Leonid Evdokimov 2009-05-21 11:28:54 +07:00
parent 77a490422b
commit d8dfde947f
2 changed files with 7 additions and 2 deletions

2
log.c
View File

@ -81,7 +81,7 @@ int log_preopen(const char *dst, bool log_debug, bool log_info)
break; break;
} }
if (facility == -1) { if (facility == -1) {
log_error(LOG_ERR, "log_preopen(%s, ...): unknown syslog facility"); log_error(LOG_ERR, "log_preopen(%s, ...): unknown syslog facility", dst);
return -1; return -1;
} }

7
log.h
View File

@ -12,7 +12,12 @@ int log_preopen(const char *dst, bool log_debug, bool log_info);
void log_open(); void log_open();
void _log_vwrite(const char *file, int line, const char *func, int do_errno, int priority, const char *fmt, va_list ap); void _log_vwrite(const char *file, int line, const char *func, int do_errno, int priority, const char *fmt, va_list ap);
void _log_write(const char *file, int line, const char *func, int do_errno, int priority, const char *fmt, ...);
void _log_write(const char *file, int line, const char *func, int do_errno, int priority, const char *fmt, ...)
#if defined(__GNUC__)
__attribute__ (( format (printf, 6, 7) ))
#endif
;
/* vim:set tabstop=4 softtabstop=4 shiftwidth=4: */ /* vim:set tabstop=4 softtabstop=4 shiftwidth=4: */
/* vim:set foldmethod=marker foldlevel=32 foldmarker={,}: */ /* vim:set foldmethod=marker foldlevel=32 foldmarker={,}: */