Skip to content

Commit

Permalink
bcma: use bcma_debug and pr_cont in MIPS driver
Browse files Browse the repository at this point in the history
Using bcma_debug gives a device-specific prefix for messages and pr_cont
is a common helper for continuing a line.

Signed-off-by: Rafał Miłecki <[email protected]>
Acked-By: Hauke Mehrtens <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
Rafał Miłecki authored and Kalle Valo committed Oct 17, 2017
1 parent a7986ce commit 66cc044
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/bcma/driver_mips.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,11 @@ static void bcma_core_mips_print_irq(struct bcma_device *dev, unsigned int irq)
{
int i;
static const char *irq_name[] = {"2(S)", "3", "4", "5", "6", "D", "I"};
printk(KERN_DEBUG KBUILD_MODNAME ": core 0x%04x, irq :", dev->id.id);

bcma_debug(dev->bus, "core 0x%04x, irq :", dev->id.id);
for (i = 0; i <= 6; i++)
printk(" %s%s", irq_name[i], i == irq ? "*" : " ");
printk("\n");
pr_cont(" %s%s", irq_name[i], i == irq ? "*" : " ");
pr_cont("\n");
}

static void bcma_core_mips_dump_irq(struct bcma_bus *bus)
Expand Down

0 comments on commit 66cc044

Please sign in to comment.