From d5ed8a9cd1ea4f935877a4d2a7c8937b46c69fc1 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 18 Aug 2016 14:15:33 -0400 Subject: [PATCH] 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 --- pimd/pim_upstream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.5