Netdev List
 help / color / mirror / Atom feed
* [PATCH] neigh: print nud_state in neigh timer handler.
@ 2011-10-31 21:10 Daniel Baluta
  2011-11-01 21:44 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2011-10-31 21:10 UTC (permalink / raw)
  To: davem
  Cc: eric.dumazet, gregory.v.rose, jeffrey.t.kirsher, netdev,
	Daniel Baluta, Daniel Baluta

From: Daniel Baluta <daniel.baluta@gmail.com>

For debugging purposes it is useful to know the exact state of a
non NUD_IN_TIMER neighbour entry whose timer handler just expired.

Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
---
 net/core/neighbour.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 909ecb3..6a8a311 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -874,7 +874,7 @@ static void neigh_timer_handler(unsigned long arg)
 
 	if (!(state & NUD_IN_TIMER)) {
 #ifndef CONFIG_SMP
-		printk(KERN_WARNING "neigh: timer & !nud_in_timer\n");
+		printk(KERN_WARNING "neigh: timer & !nud_in_timer, state:0x%x\n", state);
 #endif
 		goto out;
 	}
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-01 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31 21:10 [PATCH] neigh: print nud_state in neigh timer handler Daniel Baluta
2011-11-01 21:44 ` David Miller
2011-11-01 22:05   ` Daniel Baluta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox