Revision 8868d310

View differences:

libavcodec/vp3.c
75 75
#define DEBUG_IDCT 0
76 76

  
77 77
#if DEBUG_VP3
78
#define debug_vp3 printf
78
#define debug_vp3(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
79 79
#else
80 80
static inline void debug_vp3(const char *format, ...) { }
81 81
#endif
82 82

  
83 83
#if DEBUG_INIT
84
#define debug_init printf
84
#define debug_init(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
85 85
#else
86 86
static inline void debug_init(const char *format, ...) { }
87 87
#endif
88 88

  
89 89
#if DEBUG_DEQUANTIZERS
90
#define debug_dequantizers printf 
90
#define debug_dequantizers(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
91 91
#else
92 92
static inline void debug_dequantizers(const char *format, ...) { } 
93 93
#endif
94 94

  
95 95
#if DEBUG_BLOCK_CODING
96
#define debug_block_coding printf 
96
#define debug_block_coding(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
97 97
#else
98 98
static inline void debug_block_coding(const char *format, ...) { } 
99 99
#endif
100 100

  
101 101
#if DEBUG_MODES
102
#define debug_modes printf 
102
#define debug_modes(args...) av_log(NULL, AV_LOG_DEBUG, ## args) 
103 103
#else
104 104
static inline void debug_modes(const char *format, ...) { } 
105 105
#endif
106 106

  
107 107
#if DEBUG_VECTORS
108
#define debug_vectors printf 
108
#define debug_vectors(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
109 109
#else
110 110
static inline void debug_vectors(const char *format, ...) { } 
111 111
#endif
112 112

  
113 113
#if DEBUG_TOKEN 
114
#define debug_token printf 
114
#define debug_token(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
115 115
#else
116 116
static inline void debug_token(const char *format, ...) { } 
117 117
#endif
118 118

  
119 119
#if DEBUG_VLC
120
#define debug_vlc printf 
120
#define debug_vlc(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
121 121
#else
122 122
static inline void debug_vlc(const char *format, ...) { } 
123 123
#endif
124 124

  
125 125
#if DEBUG_DC_PRED
126
#define debug_dc_pred printf 
126
#define debug_dc_pred(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
127 127
#else
128 128
static inline void debug_dc_pred(const char *format, ...) { } 
129 129
#endif
130 130

  
131 131
#if DEBUG_IDCT
132
#define debug_idct printf 
132
#define debug_idct(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
133 133
#else
134 134
static inline void debug_idct(const char *format, ...) { } 
135 135
#endif

Also available in: Unified diff