summaryrefslogtreecommitdiffstats
path: root/bgpd/rfapi
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-09-13 21:38:57 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-13 21:38:57 +0200
commit1c50c1c0d683ebfa53c1607c71b8d26547e8f218 (patch)
tree0dbb03af253cdcb0abeacaf6a860a4c7600359c5 /bgpd/rfapi
parent*: LIB_[ERR|WARN] -> EC_LIB (diff)
downloadfrr-1c50c1c0d683ebfa53c1607c71b8d26547e8f218.tar.xz
frr-1c50c1c0d683ebfa53c1607c71b8d26547e8f218.zip
*: style for EC replacements
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r--bgpd/rfapi/rfapi.c4
-rw-r--r--bgpd/rfapi/rfapi_import.c3
-rw-r--r--bgpd/rfapi/vnc_export_bgp.c28
-rw-r--r--bgpd/rfapi/vnc_import_bgp.c8
-rw-r--r--bgpd/rfapi/vnc_zebra.c6
5 files changed, 24 insertions, 25 deletions
diff --git a/bgpd/rfapi/rfapi.c b/bgpd/rfapi/rfapi.c
index bde1c7977..16dcbd4ee 100644
--- a/bgpd/rfapi/rfapi.c
+++ b/bgpd/rfapi/rfapi.c
@@ -3943,7 +3943,7 @@ void *rfapi_rfp_init_group_config_ptr_vty(void *rfp_start_val,
break;
default:
flog_err(EC_LIB_DEVELOPMENT, "%s: Unknown group type=%d",
- __func__, type);
+ __func__, type);
/* should never happen */
assert("Unknown type" == NULL);
break;
@@ -4058,7 +4058,7 @@ void *rfapi_rfp_get_group_config_ptr_name(
break;
default:
flog_err(EC_LIB_DEVELOPMENT, "%s: Unknown group type=%d",
- __func__, type);
+ __func__, type);
/* should never happen */
assert("Unknown type" == NULL);
break;
diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c
index 1c93a68db..398de6b3a 100644
--- a/bgpd/rfapi/rfapi_import.c
+++ b/bgpd/rfapi/rfapi_import.c
@@ -3897,8 +3897,7 @@ rfapiBgpInfoFilteredImportFunction(safi_t safi)
default:
/* not expected */
- flog_err(EC_LIB_DEVELOPMENT, "%s: bad safi %d", __func__,
- safi);
+ flog_err(EC_LIB_DEVELOPMENT, "%s: bad safi %d", __func__, safi);
return rfapiBgpInfoFilteredImportBadSafi;
}
}
diff --git a/bgpd/rfapi/vnc_export_bgp.c b/bgpd/rfapi/vnc_export_bgp.c
index 8fff73e2e..f830c3ed5 100644
--- a/bgpd/rfapi/vnc_export_bgp.c
+++ b/bgpd/rfapi/vnc_export_bgp.c
@@ -188,8 +188,8 @@ void vnc_direct_bgp_add_route_ce(struct bgp *bgp, struct agg_node *rn,
if (!afi) {
- flog_err(EC_LIB_DEVELOPMENT,
- "%s: can't get afi of route node", __func__);
+ flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of route node",
+ __func__);
return;
}
@@ -700,8 +700,8 @@ void vnc_direct_bgp_add_prefix(struct bgp *bgp,
afi_t afi = family2afi(rn->p.family);
if (!afi) {
- flog_err(EC_LIB_DEVELOPMENT,
- "%s: can't get afi of route node", __func__);
+ flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of route node",
+ __func__);
return;
}
@@ -811,7 +811,7 @@ void vnc_direct_bgp_del_prefix(struct bgp *bgp,
if (!afi) {
flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi route node",
- __func__);
+ __func__);
return;
}
@@ -926,8 +926,8 @@ void vnc_direct_bgp_add_nve(struct bgp *bgp, struct rfapi_descriptor *rfd)
afi_t afi = family2afi(rfd->vn_addr.addr_family);
if (!afi) {
- flog_err(EC_LIB_DEVELOPMENT,
- "%s: can't get afi of nve vn addr", __func__);
+ flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of nve vn addr",
+ __func__);
return;
}
@@ -980,7 +980,7 @@ void vnc_direct_bgp_add_nve(struct bgp *bgp, struct rfapi_descriptor *rfd)
rt = import_table->imported_vpn[afi];
} else {
flog_err(EC_LIB_DEVELOPMENT, "%s: bad afi %d",
- __func__, afi);
+ __func__, afi);
return;
}
@@ -1073,8 +1073,8 @@ void vnc_direct_bgp_del_nve(struct bgp *bgp, struct rfapi_descriptor *rfd)
afi_t afi = family2afi(rfd->vn_addr.addr_family);
if (!afi) {
- flog_err(EC_LIB_DEVELOPMENT,
- "%s: can't get afi of nve vn addr", __func__);
+ flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of nve vn addr",
+ __func__);
return;
}
@@ -1122,7 +1122,7 @@ void vnc_direct_bgp_del_nve(struct bgp *bgp, struct rfapi_descriptor *rfd)
rt = import_table->imported_vpn[afi];
} else {
flog_err(EC_LIB_DEVELOPMENT, "%s: bad afi %d",
- __func__, afi);
+ __func__, afi);
return;
}
@@ -1642,8 +1642,8 @@ void vnc_direct_bgp_rh_add_route(struct bgp *bgp, afi_t afi,
struct attr *iattr;
if (!afi) {
- flog_err(EC_LIB_DEVELOPMENT,
- "%s: can't get afi of route node", __func__);
+ flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of route node",
+ __func__);
return;
}
@@ -1763,7 +1763,7 @@ void vnc_direct_bgp_rh_del_route(struct bgp *bgp, afi_t afi,
if (!afi) {
flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi route node",
- __func__);
+ __func__);
return;
}
diff --git a/bgpd/rfapi/vnc_import_bgp.c b/bgpd/rfapi/vnc_import_bgp.c
index e6faf54c1..7cd1894cc 100644
--- a/bgpd/rfapi/vnc_import_bgp.c
+++ b/bgpd/rfapi/vnc_import_bgp.c
@@ -604,7 +604,7 @@ static void vnc_import_bgp_add_route_mode_resolve_nve(
if (!afi) {
flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of prefix",
- __func__);
+ __func__);
return;
}
@@ -721,7 +721,7 @@ static void vnc_import_bgp_add_route_mode_plain(struct bgp *bgp,
if (!afi) {
flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of prefix",
- __func__);
+ __func__);
return;
}
@@ -909,7 +909,7 @@ vnc_import_bgp_add_route_mode_nvegroup(struct bgp *bgp, struct prefix *prefix,
if (!afi) {
flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of prefix",
- __func__);
+ __func__);
return;
}
@@ -2635,7 +2635,7 @@ void vnc_import_bgp_add_route(struct bgp *bgp, struct prefix *prefix,
if (!afi) {
flog_err(EC_LIB_DEVELOPMENT, "%s: can't get afi of prefix",
- __func__);
+ __func__);
return;
}
diff --git a/bgpd/rfapi/vnc_zebra.c b/bgpd/rfapi/vnc_zebra.c
index 8bd680f79..1db175536 100644
--- a/bgpd/rfapi/vnc_zebra.c
+++ b/bgpd/rfapi/vnc_zebra.c
@@ -572,7 +572,7 @@ static void vnc_zebra_add_del_prefix(struct bgp *bgp,
if (rn->p.family != AF_INET && rn->p.family != AF_INET6) {
flog_err(EC_LIB_DEVELOPMENT,
- "%s: invalid route node addr family", __func__);
+ "%s: invalid route node addr family", __func__);
return;
}
@@ -645,7 +645,7 @@ static void vnc_zebra_add_del_nve(struct bgp *bgp, struct rfapi_descriptor *rfd,
if (afi != AFI_IP && afi != AFI_IP6) {
flog_err(EC_LIB_DEVELOPMENT, "%s: invalid vn addr family",
- __func__);
+ __func__);
return;
}
@@ -749,7 +749,7 @@ static void vnc_zebra_add_del_group_afi(struct bgp *bgp,
if (!family) {
flog_err(EC_LIB_DEVELOPMENT, "%s: computed bad family: %d",
- __func__, family);
+ __func__, family);
return;
}