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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-08-18 14:15:33 -04:00
parent fa6a18f1c8
commit d5ed8a9cd1

View File

@ -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)