From: Matthieu Boutier Date: Wed, 18 Jan 2012 19:20:59 +0000 (+0100) Subject: babeld: use zlog_debug instead of do_debugf, for debugf. X-Git-Tag: frr-2.0-rc1~1871^2~51 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3cb4134bcfb2b9f7aa885a39cc0efc3b18125490;p=mirror%2Ffrr.git babeld: use zlog_debug instead of do_debugf, for debugf. --- diff --git a/babeld/util.h b/babeld/util.h index d64169b0c6..376b967f65 100644 --- a/babeld/util.h +++ b/babeld/util.h @@ -154,12 +154,12 @@ static inline void debugf(int level, const char *format, ...) { return; } #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L #define debugf(level, ...) \ do { \ -if(UNLIKELY(debug & level)) do_debugf(__VA_ARGS__); \ +if(UNLIKELY(debug & level)) zlog_debug(__VA_ARGS__); \ } while(0) #elif defined __GNUC__ #define debugf(level, _args...) \ do { \ -if(UNLIKELY(debug & level)) do_debugf(_args); \ +if(UNLIKELY(debug & level)) zlog_debug(_args); \ } while(0) #else static inline void debugf(int level, const char *format, ...) { return; }