Browse Source

Fix attribute placement for debugging functions (#1587)

pull/4/head
Joseph Henry 4 years ago
parent
commit
c34325fee7
No known key found for this signature in database
GPG Key ID: C45B33FF5EBC9344
  1. 6
      node/Bond.hpp

6
node/Bond.hpp

@ -1142,6 +1142,9 @@ class Bond {
*
*/
void log(const char* fmt, ...)
#ifdef __GNUC__
__attribute__((format(printf, 2, 3)))
#endif
{
#ifdef ZT_TRACE
time_t rawtime;
@ -1171,6 +1174,9 @@ class Bond {
*
*/
void debug(const char* fmt, ...)
#ifdef __GNUC__
__attribute__((format(printf, 2, 3)))
#endif
{
#ifdef ZT_DEBUG
time_t rawtime;

Loading…
Cancel
Save