diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-18 14:08:34 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 20:02:05 +0000 |
| commit | e33b116cdf983c81fdb1b9716684a888b870899b (patch) | |
| tree | 38055319f156ee153f412020c5058a5d17d27efb /babeld/neighbour.c | |
| parent | f135ba5272cfd892c1dfc88cf595a25da7c49fd9 (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.c | 4 |
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; } |
