Commit b231125a authored by Linus Torvalds's avatar Linus Torvalds

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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e28d7137
......@@ -2899,7 +2899,7 @@ void print_modules(void)
struct module *mod;
char buf[8];
printk("Modules linked in:");
printk(KERN_DEFAULT "Modules linked in:");
/* Most callers should already have preempt disabled, but make sure */
preempt_disable();
list_for_each_entry_rcu(mod, &modules, list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment