Skip to content

Commit

Permalink
sh: machvec: Modernize printing of kernel messages
Browse files Browse the repository at this point in the history
  - Convert from printk() to pr_*(),
  - Add missing continuations.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rich Felker <dalias@libc.org>
  • Loading branch information
geertu authored and Rich Felker committed Aug 15, 2020
1 parent 601bf18 commit eac1a48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/sh/kernel/machvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ static int __init early_parse_mv(char *from)

mvp = get_mv_byname(mv_name);
if (unlikely(!mvp)) {
printk("Available vectors:\n\n\t'%s', ", sh_mv.mv_name);
pr_info("Available vectors:\n\n\t'%s', ", sh_mv.mv_name);
for_each_mv(mvp)
printk("'%s', ", mvp->mv_name);
printk("\n\n");
pr_cont("'%s', ", mvp->mv_name);
pr_cont("\n\n");
panic("Failed to select machvec '%s' -- halting.\n",
mv_name);
} else
Expand Down Expand Up @@ -104,7 +104,7 @@ void __init sh_mv_setup(void)
sh_mv = *(struct sh_machine_vector *)&__machvec_start;
}

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

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

0 comments on commit eac1a48

Please sign in to comment.