diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-19 21:28:01 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 22:02:05 +0200 |
commit | aed070112489e92dbdcc4eb02243aec8af2d66af (patch) | |
tree | 3f9be78c9061266899d1025bd2098ebd8bc0ebe9 /nhrpd/resolver.c | |
parent | bgpd: Add some FLowspec specific Error Codes. (diff) | |
download | frr-aed070112489e92dbdcc4eb02243aec8af2d66af.tar.xz frr-aed070112489e92dbdcc4eb02243aec8af2d66af.zip |
nhrpd: Add NHRP_ERR_XXXX for zlog_err to zlog_ferr conversion
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'nhrpd/resolver.c')
-rw-r--r-- | nhrpd/resolver.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nhrpd/resolver.c b/nhrpd/resolver.c index 415e7523d..6515a9709 100644 --- a/nhrpd/resolver.c +++ b/nhrpd/resolver.c @@ -12,7 +12,10 @@ #include "vector.h" #include "thread.h" +#include "lib_errors.h" + #include "nhrpd.h" +#include "nhrp_errors.h" struct resolver_state { ares_channel channel; @@ -191,9 +194,9 @@ void resolver_resolve(struct resolver_query *query, int af, union sockunion *)) { if (query->callback != NULL) { - zlog_err( - "Trying to resolve '%s', but previous query was not finished yet", - hostname); + zlog_ferr(NHRP_ERR_RESOLVER, + "Trying to resolve '%s', but previous query was not finished yet", + hostname); return; } |