]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Fix debug to properly display state
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 18 Aug 2016 18:15:33 +0000 (14:15 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:06 +0000 (20:26 -0500)
We should display the state the upstream is instead of
the number of the state.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_upstream.c

index d1e90caf95c6d38b98373c3315f6f9da7c53f192..957cf456c16a5b35c47399e27d89a31ddfebd8a8 100644 (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)