mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r21309: Add PRINTF_ATTRIBUTE checks for log statements.
Guenther
This commit is contained in:
parent
16c90f30b9
commit
968dfcc821
@ -78,6 +78,7 @@ static BOOL _pam_log_is_silent(int ctrl)
|
||||
return on(ctrl, WINBIND_SILENT);
|
||||
}
|
||||
|
||||
static void _pam_log(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...) PRINTF_ATTRIBUTE(4,5);
|
||||
static void _pam_log(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
@ -117,6 +118,7 @@ static BOOL _pam_log_is_debug_state_enabled(int ctrl)
|
||||
return _pam_log_is_debug_enabled(ctrl);
|
||||
}
|
||||
|
||||
static void _pam_log_debug(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...) PRINTF_ATTRIBUTE(4,5);
|
||||
static void _pam_log_debug(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
@ -413,6 +415,7 @@ static int _make_remark_v(pam_handle_t * pamh, int flags, int type, const char *
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int _make_remark_format(pam_handle_t * pamh, int flags, int type, const char *format, ...) PRINTF_ATTRIBUTE(4,5);
|
||||
static int _make_remark_format(pam_handle_t * pamh, int flags, int type, const char *format, ...)
|
||||
{
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user