summaryrefslogtreecommitdiffstats
path: root/arch/m68k/sun3/idprom.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2016-11-09 15:40:58 +0100
committerGeert Uytterhoeven <geert@linux-m68k.org>2017-02-12 10:36:51 +0100
commit56bbd86257f899ced7ef9c58210dda4edbd40871 (patch)
treea55105c986ab8582e01ce0a60143f024d13a6472 /arch/m68k/sun3/idprom.c
parent446926f9490342532ff44983cb187c01051174a9 (diff)
downloadlinux-56bbd86257f899ced7ef9c58210dda4edbd40871.tar.gz
linux-56bbd86257f899ced7ef9c58210dda4edbd40871.tar.bz2
linux-56bbd86257f899ced7ef9c58210dda4edbd40871.zip
m68k/sun3: Modernize printing of kernel messages
- Convert from printk() to pr_*(), - Add missing continuations, - Do not print nonexistent len variable, - Add missing sysname[] variable, - Correct printf()-style format specifiers. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/sun3/idprom.c')
-rw-r--r--arch/m68k/sun3/idprom.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/m68k/sun3/idprom.c b/arch/m68k/sun3/idprom.c
index cfe9aa422343..9c23f506d60d 100644
--- a/arch/m68k/sun3/idprom.c
+++ b/arch/m68k/sun3/idprom.c
@@ -64,12 +64,14 @@ static void __init display_system_type(unsigned char machtype)
for (i = 0; i < NUM_SUN_MACHINES; i++) {
if(Sun_Machines[i].id_machtype == machtype) {
if (machtype != (SM_SUN4M_OBP | 0x00))
- printk("TYPE: %s\n", Sun_Machines[i].name);
+ pr_info("TYPE: %s\n", Sun_Machines[i].name);
else {
#if 0
+ char sysname[128];
+
prom_getproperty(prom_root_node, "banner-name",
sysname, sizeof(sysname));
- printk("TYPE: %s\n", sysname);
+ pr_info("TYPE: %s\n", sysname);
#endif
}
return;
@@ -125,5 +127,5 @@ void __init idprom_init(void)
display_system_type(idprom->id_machtype);
- printk("Ethernet address: %pM\n", idprom->id_ethaddr);
+ pr_info("Ethernet address: %pM\n", idprom->id_ethaddr);
}