Merge pull request #5837 from qlyoung/fix-zapi-pbr-unsupported-ip-family-log-message-newline

zebra: remove \n in zapi pbr family log msg
This commit is contained in:
Donatas Abraitis 2020-02-19 20:41:30 +01:00 committed by GitHub
commit be427cc88a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2412,15 +2412,14 @@ static inline void zread_rule(ZAPI_HANDLER_ARGS)
|| zpr.rule.filter.src_ip.family == AF_INET6)) {
zlog_warn(
"Unsupported PBR source IP family: %s (%" PRIu8
")\n",
")",
family2str(zpr.rule.filter.src_ip.family),
zpr.rule.filter.src_ip.family);
return;
}
if (!(zpr.rule.filter.dst_ip.family == AF_INET
|| zpr.rule.filter.dst_ip.family == AF_INET6)) {
zlog_warn("Unsupported PBR IP family: %s (%" PRIu8
")\n",
zlog_warn("Unsupported PBR IP family: %s (%" PRIu8 ")",
family2str(zpr.rule.filter.dst_ip.family),
zpr.rule.filter.dst_ip.family);
return;