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/source.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/source.c')
| -rw-r--r-- | babeld/source.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/babeld/source.c b/babeld/source.c index 72396102b3..6145743a4d 100644 --- a/babeld/source.c +++ b/babeld/source.c @@ -31,6 +31,7 @@ THE SOFTWARE. #include "source.h" #include "babel_interface.h" #include "route.h" +#include "babel_errors.h" struct source *srcs = NULL; @@ -58,7 +59,7 @@ find_source(const unsigned char *id, const unsigned char *p, unsigned char plen, src = malloc(sizeof(struct source)); if(src == NULL) { - zlog_err("malloc(source): %s", safe_strerror(errno)); + zlog_ferr(BABEL_ERR_MEMORY, "malloc(source): %s", safe_strerror(errno)); return NULL; } |
