[PATCH] IRQ: warning message cleanup



Make warnings more consistent.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx>

Index: work-mm7/kernel/irq/manage.c
===================================================================
--- work-mm7.orig/kernel/irq/manage.c 2006-06-30 11:59:13.000000000 -0600
+++ work-mm7/kernel/irq/manage.c 2006-06-30 12:17:42.000000000 -0600
@@ -115,7 +115,7 @@
spin_lock_irqsave(&desc->lock, flags);
switch (desc->depth) {
case 0:
- printk(KERN_WARNING "Unablanced enable_irq(%d)\n", irq);
+ printk(KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);
WARN_ON(1);
break;
case 1: {
@@ -268,9 +268,10 @@
* SA_TRIGGER_* but the PIC does not support
* multiple flow-types?
*/
- printk(KERN_WARNING "setup_irq(%d) SA_TRIGGER"
- "set. No set_type function available\n",
- irq);
+ printk(KERN_WARNING "No SA_TRIGGER set_type "
+ "function for IRQ %d (%s)\n", irq,
+ desc->chip ? desc->chip->name :
+ "unknown");
} else
compat_irq_chip_set_default_handler(desc);

@@ -300,7 +301,7 @@
mismatch:
spin_unlock_irqrestore(&desc->lock, flags);
if (!(new->flags & SA_PROBEIRQ)) {
- printk(KERN_ERR "%s: irq handler mismatch\n", __FUNCTION__);
+ printk(KERN_ERR "IRQ handler type mismatch for IRQ %d\n", irq);
dump_stack();
}
return -EBUSY;
@@ -374,7 +375,7 @@
kfree(action);
return;
}
- printk(KERN_ERR "Trying to free free IRQ%d\n", irq);
+ printk(KERN_ERR "Trying to free already-free IRQ %d\n", irq);
spin_unlock_irqrestore(&desc->lock, flags);
return;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Monitoring IP traffic
    ... I will try that - certainly the switch is FD - I will check the ... > The situation I am investigating is an Alpha using WASD is ... half duplex while the other is full duplex. ... Other mismatch symptoms can be very bizarre. ...
    (comp.os.vms)
  • Re: Which motherboards work well with em(4)?
    ... ethernet switch. ... The systems do have the same motherboards and processors -- Asus A7V8X-X ... Is that consistent? ... Correct, it hangs on receive, ...
    (freebsd-net)
  • Re: Slow GPO Software Install
    ... I have all the workstations set to auto. ... If there are mismatch issues the switch will show errors. ...
    (microsoft.public.win2000.group_policy)
  • Re: logging off and swiching off
    ... It sounds like you have a lot of malicious spyware related problems, ... Click Register to join the forums at the top of the page and then go to the ... Again these messages are not consistent and not ... actualy switch off but instead only logs off and I have to switch off at the ...
    (microsoft.public.windowsxp.newusers)
  • Re: Odd network issue ... *very* slow scp between two servers
    ... On Wed, 10 Mar 2004, Dmitry Morozovsky wrote: ... > PK> More likely to be a problem with the network card. ... > mismatch. ... What switch are you using, ...
    (freebsd-stable)