Commit e89e2613 authored by Russell King's avatar Russell King

ARM: riscpc: fix ecard printing

Multiple printk() statements appear to get broken into separate lines,
which messes up the formatting.  Fix these up.
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 63a0666b
...@@ -496,18 +496,21 @@ static void ecard_dump_irq_state(void) ...@@ -496,18 +496,21 @@ static void ecard_dump_irq_state(void)
printk("Expansion card IRQ state:\n"); printk("Expansion card IRQ state:\n");
for (ec = cards; ec; ec = ec->next) { for (ec = cards; ec; ec = ec->next) {
const char *claimed;
if (ec->slot_no == 8) if (ec->slot_no == 8)
continue; continue;
printk(" %d: %sclaimed, ", claimed = ec->claimed ? "" : "not ";
ec->slot_no, ec->claimed ? "" : "not ");
if (ec->ops && ec->ops->irqpending && if (ec->ops && ec->ops->irqpending &&
ec->ops != &ecard_default_ops) ec->ops != &ecard_default_ops)
printk("irq %spending\n", printk(" %d: %sclaimed irq %spending\n",
ec->slot_no, claimed,
ec->ops->irqpending(ec) ? "" : "not "); ec->ops->irqpending(ec) ? "" : "not ");
else else
printk("irqaddr %p, mask = %02X, status = %02X\n", printk(" %d: %sclaimed irqaddr %p, mask = %02X, status = %02X\n",
ec->slot_no, claimed,
ec->irqaddr, ec->irqmask, readb(ec->irqaddr)); ec->irqaddr, ec->irqmask, readb(ec->irqaddr));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment