Skip to content

Commit dc45707

Browse files
Nicolas PitreRussell King
authored andcommitted
ARM: 7415/1: vfp: convert printk's to pr_*'s
This is mainly to get rid of the "vfp_pm_suspend: saving vfp state" message flooding the kernel message ring by default. Signed-off-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 1fdc08a commit dc45707

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎arch/arm/vfp/vfpmodule.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,11 @@ static void vfp_panic(char *reason, u32 inst)
238238
{
239239
int i;
240240

241-
printk(KERN_ERR "VFP: Error: %s\n", reason);
242-
printk(KERN_ERR "VFP: EXC 0x%08x SCR 0x%08x INST 0x%08x\n",
241+
pr_err("VFP: Error: %s\n", reason);
242+
pr_err("VFP: EXC 0x%08x SCR 0x%08x INST 0x%08x\n",
243243
fmrx(FPEXC), fmrx(FPSCR), inst);
244244
for (i = 0; i < 32; i += 2)
245-
printk(KERN_ERR "VFP: s%2u: 0x%08x s%2u: 0x%08x\n",
245+
pr_err("VFP: s%2u: 0x%08x s%2u: 0x%08x\n",
246246
i, vfp_get_float(i), i+1, vfp_get_float(i+1));
247247
}
248248

@@ -446,7 +446,7 @@ static int vfp_pm_suspend(void)
446446

447447
/* if vfp is on, then save state for resumption */
448448
if (fpexc & FPEXC_EN) {
449-
printk(KERN_DEBUG "%s: saving vfp state\n", __func__);
449+
pr_debug("%s: saving vfp state\n", __func__);
450450
vfp_save_state(&ti->vfpstate, fpexc);
451451

452452
/* disable, just in case */
@@ -571,18 +571,18 @@ static int __init vfp_init(void)
571571
barrier();
572572
vfp_vector = vfp_null_entry;
573573

574-
printk(KERN_INFO "VFP support v0.3: ");
574+
pr_info("VFP support v0.3: ");
575575
if (VFP_arch)
576-
printk("not present\n");
576+
pr_cont("not present\n");
577577
else if (vfpsid & FPSID_NODOUBLE) {
578-
printk("no double precision support\n");
578+
pr_cont("no double precision support\n");
579579
} else {
580580
hotcpu_notifier(vfp_hotplug, 0);
581581

582582
smp_call_function(vfp_enable, NULL, 1);
583583

584584
VFP_arch = (vfpsid & FPSID_ARCH_MASK) >> FPSID_ARCH_BIT; /* Extract the architecture version */
585-
printk("implementor %02x architecture %d part %02x variant %x rev %x\n",
585+
pr_cont("implementor %02x architecture %d part %02x variant %x rev %x\n",
586586
(vfpsid & FPSID_IMPLEMENTER_MASK) >> FPSID_IMPLEMENTER_BIT,
587587
(vfpsid & FPSID_ARCH_MASK) >> FPSID_ARCH_BIT,
588588
(vfpsid & FPSID_PART_MASK) >> FPSID_PART_BIT,

0 commit comments

Comments
 (0)