clean up usage of printf attribute (encapsulate it in a macro)

This commit is contained in:
Arvid Norberg
2015-05-10 05:11:51 +00:00
parent b60934288b
commit 1357fd5265
15 changed files with 26 additions and 82 deletions

View File

@@ -4276,9 +4276,7 @@ retry:
}
#ifndef TORRENT_DISABLE_LOGGING
#if defined __GNUC__ || defined __clang__
__attribute__((format(printf, 2, 3)))
#endif
TORRENT_FORMAT(2,3)
void session_impl::session_log(char const* fmt, ...) const
{
if (!m_alerts.should_post<log_alert>()) return;
@@ -4289,9 +4287,7 @@ retry:
va_end(v);
}
#if defined __GNUC__ || defined __clang__
__attribute__((format(printf, 2, 0)))
#endif
TORRENT_FORMAT(2, 0)
void session_impl::session_vlog(char const* fmt, va_list& v) const
{
if (!m_alerts.should_post<log_alert>()) return;