Skip to content

Commit 515a9ad

Browse files
zx2c4torvalds
authored andcommittedSep 10, 2015
include/linux/printk.h: include pr_fmt in pr_debug_ratelimited
The other two implementations of pr_debug_ratelimited include pr_fmt, along with every other pr_* function. But pr_debug_ratelimited forgot to add it with the CONFIG_DYNAMIC_DEBUG implementation. This patch unifies the behavior. Signed-off-by: Jason A. Donenfeld <[email protected]> Cc: Steven Rostedt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 52aa853 commit 515a9ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎include/linux/printk.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ do { \
404404
static DEFINE_RATELIMIT_STATE(_rs, \
405405
DEFAULT_RATELIMIT_INTERVAL, \
406406
DEFAULT_RATELIMIT_BURST); \
407-
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
407+
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, pr_fmt(fmt)); \
408408
if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT) && \
409409
__ratelimit(&_rs)) \
410-
__dynamic_pr_debug(&descriptor, fmt, ##__VA_ARGS__); \
410+
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
411411
} while (0)
412412
#elif defined(DEBUG)
413413
#define pr_debug_ratelimited(fmt, ...) \

0 commit comments

Comments
 (0)
Please sign in to comment.