Skip to content

Commit 1ee0aa8

Browse files
committed
x86/mpparse: Cleanup apic_printk()s
Use the new apic_pr_verbose() helper. Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Qiuxu Zhuo <[email protected]> Tested-by: Breno Leitao <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 54cd379 commit 1ee0aa8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

arch/x86/kernel/mpparse.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void __init mpc_oem_bus_info(struct mpc_bus *m, char *str)
6868
{
6969
memcpy(str, m->bustype, 6);
7070
str[6] = 0;
71-
apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->busid, str);
71+
apic_pr_verbose("Bus #%d is %s\n", m->busid, str);
7272
}
7373

7474
static void __init MP_bus_info(struct mpc_bus *m)
@@ -417,7 +417,7 @@ static unsigned long __init get_mpc_size(unsigned long physptr)
417417
mpc = early_memremap(physptr, PAGE_SIZE);
418418
size = mpc->length;
419419
early_memunmap(mpc, PAGE_SIZE);
420-
apic_printk(APIC_VERBOSE, " mpc: %lx-%lx\n", physptr, physptr + size);
420+
apic_pr_verbose(" mpc: %lx-%lx\n", physptr, physptr + size);
421421

422422
return size;
423423
}
@@ -560,8 +560,7 @@ static int __init smp_scan_config(unsigned long base, unsigned long length)
560560
struct mpf_intel *mpf;
561561
int ret = 0;
562562

563-
apic_printk(APIC_VERBOSE, "Scan for SMP in [mem %#010lx-%#010lx]\n",
564-
base, base + length - 1);
563+
apic_pr_verbose("Scan for SMP in [mem %#010lx-%#010lx]\n", base, base + length - 1);
565564
BUILD_BUG_ON(sizeof(*mpf) != 16);
566565

567566
while (length > 0) {
@@ -683,13 +682,13 @@ static void __init check_irq_src(struct mpc_intsrc *m, int *nr_m_spare)
683682
{
684683
int i;
685684

686-
apic_printk(APIC_VERBOSE, "OLD ");
685+
apic_pr_verbose("OLD ");
687686
print_mp_irq_info(m);
688687

689688
i = get_MP_intsrc_index(m);
690689
if (i > 0) {
691690
memcpy(m, &mp_irqs[i], sizeof(*m));
692-
apic_printk(APIC_VERBOSE, "NEW ");
691+
apic_pr_verbose("NEW ");
693692
print_mp_irq_info(&mp_irqs[i]);
694693
return;
695694
}
@@ -772,7 +771,7 @@ static int __init replace_intsrc_all(struct mpc_table *mpc,
772771
continue;
773772

774773
if (nr_m_spare > 0) {
775-
apic_printk(APIC_VERBOSE, "*NEW* found\n");
774+
apic_pr_verbose("*NEW* found\n");
776775
nr_m_spare--;
777776
memcpy(m_spare[nr_m_spare], &mp_irqs[i], sizeof(mp_irqs[i]));
778777
m_spare[nr_m_spare] = NULL;

0 commit comments

Comments
 (0)