Skip to content

Commit

Permalink
module: use pr_cont
Browse files Browse the repository at this point in the history
When dumping loaded modules, we print them one by one in separate
printks. Let's use pr_cont as they are continuation prints.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Jiri Slaby authored and Rusty Russell committed Mar 13, 2014
1 parent 33807f4 commit 27bba4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -3809,12 +3809,12 @@ void print_modules(void)
list_for_each_entry_rcu(mod, &modules, list) {
if (mod->state == MODULE_STATE_UNFORMED)
continue;
printk(" %s%s", mod->name, module_flags(mod, buf));
pr_cont(" %s%s", mod->name, module_flags(mod, buf));
}
preempt_enable();
if (last_unloaded_module[0])
printk(" [last unloaded: %s]", last_unloaded_module);
printk("\n");
pr_cont(" [last unloaded: %s]", last_unloaded_module);
pr_cont("\n");
}

#ifdef CONFIG_MODVERSIONS
Expand Down

0 comments on commit 27bba4d

Please sign in to comment.