From: Donald Sharp Date: Thu, 18 Aug 2016 18:15:33 +0000 (-0400) Subject: pimd: Fix debug to properly display state X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~280 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d5ed8a9cd1ea4f935877a4d2a7c8937b46c69fc1;p=mirror%2Ffrr.git pimd: Fix debug to properly display state We should display the state the upstream is instead of the number of the state. Signed-off-by: Donald Sharp --- diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index d1e90caf95..957cf456c1 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -934,8 +934,9 @@ pim_upstream_register_stop_timer (struct thread *t) if (PIM_DEBUG_TRACE) { - zlog_debug ("%s: (S,G)=%s upstream register stop timer %d", - __PRETTY_FUNCTION__, pim_str_sg_dump (&up->sg), up->join_state); + zlog_debug ("%s: (S,G)=%s upstream register stop timer %s", + __PRETTY_FUNCTION__, pim_str_sg_dump (&up->sg), + pim_upstream_state2str(up)); } switch (up->join_state)