aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-06-26 07:15:58 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-11-26 05:09:02 -0500
commit6074a13934202c7a68c77fd5f37da8dce731f181 (patch)
tree093b9ffffb76b64fdd40bd9542594b14c6caa039 /arch/m68k/kernel
parent51b9310f0a33d5280a93228475fa95e38fbcba36 (diff)
m68k/setup: Use pr_*() and __func__ instead of plain printk()
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel')
-rw-r--r--arch/m68k/kernel/setup_mm.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index 99aa9887d5a8..9f16a15fa287 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -161,7 +161,8 @@ static void __init m68k_parse_bootinfo(const struct bi_record *record)
161 m68k_memory[m68k_num_memory].size = data[1]; 161 m68k_memory[m68k_num_memory].size = data[1];
162 m68k_num_memory++; 162 m68k_num_memory++;
163 } else 163 } else
164 printk("m68k_parse_bootinfo: too many memory chunks\n"); 164 pr_warn("%s: too many memory chunks\n",
165 __func__);
165 break; 166 break;
166 167
167 case BI_RAMDISK: 168 case BI_RAMDISK:
@@ -197,8 +198,8 @@ static void __init m68k_parse_bootinfo(const struct bi_record *record)
197 unknown = 1; 198 unknown = 1;
198 } 199 }
199 if (unknown) 200 if (unknown)
200 printk("m68k_parse_bootinfo: unknown tag 0x%04x ignored\n", 201 pr_warn("%s: unknown tag 0x%04x ignored\n", __func__,
201 record->tag); 202 record->tag);
202 record = (struct bi_record *)((unsigned long)record + 203 record = (struct bi_record *)((unsigned long)record +
203 record->size); 204 record->size);
204 } 205 }
@@ -206,8 +207,8 @@ static void __init m68k_parse_bootinfo(const struct bi_record *record)
206 m68k_realnum_memory = m68k_num_memory; 207 m68k_realnum_memory = m68k_num_memory;
207#ifdef CONFIG_SINGLE_MEMORY_CHUNK 208#ifdef CONFIG_SINGLE_MEMORY_CHUNK
208 if (m68k_num_memory > 1) { 209 if (m68k_num_memory > 1) {
209 printk("Ignoring last %i chunks of physical memory\n", 210 pr_warn("%s: ignoring last %i chunks of physical memory\n",
210 (m68k_num_memory - 1)); 211 __func__, (m68k_num_memory - 1));
211 m68k_num_memory = 1; 212 m68k_num_memory = 1;
212 } 213 }
213#endif 214#endif
@@ -247,7 +248,7 @@ void __init setup_arch(char **cmdline_p)
247 asm (".chip 68060; movec %%pcr,%0; .chip 68k" 248 asm (".chip 68060; movec %%pcr,%0; .chip 68k"
248 : "=d" (pcr)); 249 : "=d" (pcr));
249 if (((pcr >> 8) & 0xff) <= 5) { 250 if (((pcr >> 8) & 0xff) <= 5) {
250 printk("Enabling workaround for errata I14\n"); 251 pr_warn("Enabling workaround for errata I14\n");
251 asm (".chip 68060; movec %0,%%pcr; .chip 68k" 252 asm (".chip 68060; movec %0,%%pcr; .chip 68k"
252 : : "d" (pcr | 0x20)); 253 : : "d" (pcr | 0x20));
253 } 254 }
@@ -353,7 +354,7 @@ void __init setup_arch(char **cmdline_p)
353 BOOTMEM_DEFAULT); 354 BOOTMEM_DEFAULT);
354 initrd_start = (unsigned long)phys_to_virt(m68k_ramdisk.addr); 355 initrd_start = (unsigned long)phys_to_virt(m68k_ramdisk.addr);
355 initrd_end = initrd_start + m68k_ramdisk.size; 356 initrd_end = initrd_start + m68k_ramdisk.size;
356 printk("initrd: %08lx - %08lx\n", initrd_start, initrd_end); 357 pr_info("initrd: %08lx - %08lx\n", initrd_start, initrd_end);
357 } 358 }
358#endif 359#endif
359 360
@@ -538,9 +539,9 @@ void check_bugs(void)
538{ 539{
539#ifndef CONFIG_M68KFPU_EMU 540#ifndef CONFIG_M68KFPU_EMU
540 if (m68k_fputype == 0) { 541 if (m68k_fputype == 0) {
541 printk(KERN_EMERG "*** YOU DO NOT HAVE A FLOATING POINT UNIT, " 542 pr_emerg("*** YOU DO NOT HAVE A FLOATING POINT UNIT, "
542 "WHICH IS REQUIRED BY LINUX/M68K ***\n"); 543 "WHICH IS REQUIRED BY LINUX/M68K ***\n");
543 printk(KERN_EMERG "Upgrade your hardware or join the FPU " 544 pr_emerg("Upgrade your hardware or join the FPU "
544 "emulation project\n"); 545 "emulation project\n");
545 panic("no FPU"); 546 panic("no FPU");
546 } 547 }