Commit b231125af7811a2f68c455d3bda95ac170ee4fa6
1 parent
e28d713704
Exists in
master
and in
20 other branches
printk: add KERN_DEFAULT loglevel to print_modules()
Several WARN_ON() messages omit the '\n' at the end of the string, which is a simple (and understandable) error. The next line printed after that warning line is usually the current module list, and that printk does not have a log-level marker - resulting in one long mixed-up line. Adding this loglevel marker will now avoid this unreadable mess. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
kernel/module.c
... | ... | @@ -2899,7 +2899,7 @@ |
2899 | 2899 | struct module *mod; |
2900 | 2900 | char buf[8]; |
2901 | 2901 | |
2902 | - printk("Modules linked in:"); | |
2902 | + printk(KERN_DEFAULT "Modules linked in:"); | |
2903 | 2903 | /* Most callers should already have preempt disabled, but make sure */ |
2904 | 2904 | preempt_disable(); |
2905 | 2905 | list_for_each_entry_rcu(mod, &modules, list) |