Skip to content

Commit eac1a48

Browse files
geertuRich Felker
authored andcommitted
sh: machvec: Modernize printing of kernel messages
- Convert from printk() to pr_*(), - Add missing continuations. Signed-off-by: Geert Uytterhoeven <[email protected]> Tested-by: Guenter Roeck <[email protected]> Signed-off-by: Rich Felker <[email protected]>
1 parent 601bf18 commit eac1a48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/sh/kernel/machvec.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ static int __init early_parse_mv(char *from)
6464

6565
mvp = get_mv_byname(mv_name);
6666
if (unlikely(!mvp)) {
67-
printk("Available vectors:\n\n\t'%s', ", sh_mv.mv_name);
67+
pr_info("Available vectors:\n\n\t'%s', ", sh_mv.mv_name);
6868
for_each_mv(mvp)
69-
printk("'%s', ", mvp->mv_name);
70-
printk("\n\n");
69+
pr_cont("'%s', ", mvp->mv_name);
70+
pr_cont("\n\n");
7171
panic("Failed to select machvec '%s' -- halting.\n",
7272
mv_name);
7373
} else
@@ -104,7 +104,7 @@ void __init sh_mv_setup(void)
104104
sh_mv = *(struct sh_machine_vector *)&__machvec_start;
105105
}
106106

107-
printk(KERN_NOTICE "Booting machvec: %s\n", get_system_type());
107+
pr_notice("Booting machvec: %s\n", get_system_type());
108108

109109
/*
110110
* Manually walk the vec, fill in anything that the board hasn't yet

0 commit comments

Comments
 (0)