module: use pr_cont
authorJiri Slaby <jslaby@suse.cz>
Mon, 3 Feb 2014 00:43:13 +0000 (11:13 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2014 01:40:59 +0000 (12:10 +1030)
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>
kernel/module.c

index d24fcf29cb64c16029857a89dbcdeaa1ef9d724a..efa1e60319507a90f6d0447d9ecd8f28aab64e68 100644 (file)
@@ -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