summaryrefslogtreecommitdiff
path: root/babeld/neighbour.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-18 14:08:34 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 20:02:05 +0000
commite33b116cdf983c81fdb1b9716684a888b870899b (patch)
tree38055319f156ee153f412020c5058a5d17d27efb /babeld/neighbour.c
parentf135ba5272cfd892c1dfc88cf595a25da7c49fd9 (diff)
babeld: Convert all zlog_err to zlog_ferr and add appropriate info
Convert babeld to use zlog_ferr and add appropriate BABEL_ERR_XXX information. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld/neighbour.c')
-rw-r--r--babeld/neighbour.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/babeld/neighbour.c b/babeld/neighbour.c
index 3db121fd26..d10ec15a80 100644
--- a/babeld/neighbour.c
+++ b/babeld/neighbour.c
@@ -38,6 +38,7 @@ THE SOFTWARE.
#include "route.h"
#include "message.h"
#include "resend.h"
+#include "babel_errors.h"
struct neighbour *neighs = NULL;
@@ -89,7 +90,8 @@ find_neighbour(const unsigned char *address, struct interface *ifp)
neigh = malloc(sizeof(struct neighbour));
if(neigh == NULL) {
- zlog_err("malloc(neighbour): %s", safe_strerror(errno));
+ zlog_ferr(BABEL_ERR_MEMORY, "malloc(neighbour): %s",
+ safe_strerror(errno));
return NULL;
}