Skip to content

Commit eb012d1

Browse files
Tetsuo Handapmladek
authored andcommitted
printk: Remove pr_cont_once()
pr_cont_once() does not make sense; at least emitting module name using pr_fmt() into middle of a line (after e.g. pr_info_once()) does not make sense. Let's remove unused pr_cont_once(). Link: https://lore.kernel.org/r/[email protected] Cc: Joe Perches <[email protected]> Signed-off-by: Tetsuo Handa <[email protected]> Acked-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
1 parent 48021f9 commit eb012d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/printk.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,7 @@ extern int kptr_restrict;
384384
printk_once(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
385385
#define pr_info_once(fmt, ...) \
386386
printk_once(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
387-
#define pr_cont_once(fmt, ...) \
388-
printk_once(KERN_CONT pr_fmt(fmt), ##__VA_ARGS__)
387+
/* no pr_cont_once, don't do that... */
389388

390389
#if defined(DEBUG)
391390
#define pr_devel_once(fmt, ...) \

0 commit comments

Comments
 (0)