From 993c8024ff91d50332afaa611af4bc65a7b17afa Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 13 Sep 2018 19:14:28 +0000 Subject: [PATCH] ripd: RIP_[ERR|WARN] -> EC_RIP Signed-off-by: Quentin Young --- ripd/rip_errors.c | 2 +- ripd/rip_errors.h | 2 +- ripd/ripd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ripd/rip_errors.c b/ripd/rip_errors.c index 363b1b7fb5..9c089a0540 100644 --- a/ripd/rip_errors.c +++ b/ripd/rip_errors.c @@ -25,7 +25,7 @@ static struct log_ref ferr_rip_err[] = { { - .code = RIP_ERR_PACKET, + .code = EC_RIP_PACKET, .title = "RIP Packet Error", .description = "RIP has detected a packet encode/decode issue", .suggestion = "Gather log files from both sides and open a Issue" diff --git a/ripd/rip_errors.h b/ripd/rip_errors.h index 6b5f5c0169..feadf430ef 100644 --- a/ripd/rip_errors.h +++ b/ripd/rip_errors.h @@ -24,7 +24,7 @@ #include "lib/ferr.h" enum rip_log_refs { - RIP_ERR_PACKET = RIP_FERR_START, + EC_RIP_PACKET = RIP_FERR_START, RIP_ERR_CONFIG, }; diff --git a/ripd/ripd.c b/ripd/ripd.c index 560e649a89..8d3a0798f5 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -1056,7 +1056,7 @@ static void rip_auth_md5_set(struct stream *s, struct rip_interface *ri, /* Check packet length. */ if (len < (RIP_HEADER_SIZE + RIP_RTE_SIZE)) { - flog_err(RIP_ERR_PACKET, + flog_err(EC_RIP_PACKET, "rip_auth_md5_set(): packet length %ld is less than minimum length.", len); return; -- 2.39.5