]> git.puffer.fish Git - mirror/frr.git/commit
Fix unprotected debugs to warns and fix
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 12 May 2016 01:31:30 +0000 (21:31 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 12 May 2016 17:20:07 +0000 (13:20 -0400)
commitfb02523bf3b39a3d6195db5d2a6d4794e76afa8e
tree1eed7279a445a0cf5ff421915a78081e1458589a
parent778cb26fbd058cc6ddb5496610754547060e2133
Fix unprotected debugs to warns and fix

In the case of a route replace failing we
saw two issues with the logging:

1) The route replace was a debug instead of a warn
  -> In this case change code to zlog_warn
2) The buf in the route replace was not being initialized
because buf initialization was protected by a debug check.
  -> In this case move the buf initialization to inside
the failure case.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
zebra/zebra_rib.c