Rev 6936 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6936 | Rev 7143 | ||
---|---|---|---|
Line 240... | Line 240... | ||
240 | #define pr_debug_ratelimited(fmt, ...) \ |
240 | #define pr_debug_ratelimited(fmt, ...) \ |
241 | do { \ |
241 | do { \ |
242 | static DEFINE_RATELIMIT_STATE(_rs, \ |
242 | static DEFINE_RATELIMIT_STATE(_rs, \ |
243 | DEFAULT_RATELIMIT_INTERVAL, \ |
243 | DEFAULT_RATELIMIT_INTERVAL, \ |
244 | DEFAULT_RATELIMIT_BURST); \ |
244 | DEFAULT_RATELIMIT_BURST); \ |
245 | DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ |
245 | DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, pr_fmt(fmt)); \ |
246 | if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT) && \ |
246 | if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT) && \ |
247 | __ratelimit(&_rs)) \ |
247 | __ratelimit(&_rs)) \ |
248 | __dynamic_pr_debug(&descriptor, fmt, ##__VA_ARGS__); \ |
248 | __dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \ |
249 | } while (0) |
249 | } while (0) |
250 | #elif defined(DEBUG) |
250 | #elif defined(DEBUG) |
251 | #define pr_debug_ratelimited(fmt, ...) \ |
251 | #define pr_debug_ratelimited(fmt, ...) \ |
252 | printk_ratelimited(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) |
252 | printk_ratelimited(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) |
253 | #else |
253 | #else |