summaryrefslogtreecommitdiff
path: root/zebra/rt_socket.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2017-06-21 18:22:52 +0200
committerGitHub <noreply@github.com>2017-06-21 18:22:52 +0200
commit8ea37652c714edcd913d5dc02a0bfc5968fdc45e (patch)
tree86e8e62d8b64dbe4d1bf7e5a96b0572e149f4832 /zebra/rt_socket.c
parent2ca02077216cc8d8bde6b6da279f9fd03e0ac04a (diff)
parent56b40679304df9c4bfcfd5764af24f1d35b86142 (diff)
Merge pull request #745 from qlyoung/fix-lookup
*: simplify log message lookup
Diffstat (limited to 'zebra/rt_socket.c')
-rw-r--r--zebra/rt_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index ee706a1e8c..9859a31627 100644
--- a/zebra/rt_socket.c
+++ b/zebra/rt_socket.c
@@ -218,14 +218,14 @@ kernel_rtm_ipv4 (int cmd, struct prefix *p, struct route_entry *re)
default:
zlog_err ("%s: %s: rtm_write() unexpectedly returned %d for command %s",
__func__, prefix2str(p, prefix_buf, sizeof(prefix_buf)),
- error, lookup (rtm_type_str, cmd));
+ error, lookup_msg(rtm_type_str, cmd, NULL));
break;
}
} /* if (cmd and flags make sense) */
else
if (IS_ZEBRA_DEBUG_RIB)
zlog_debug ("%s: odd command %s for flags %d",
- __func__, lookup (rtm_type_str, cmd), nexthop->flags);
+ __func__, lookup_msg(rtm_type_str, cmd, NULL), nexthop->flags);
} /* for (ALL_NEXTHOPS_RO(...))*/
/* If there was no useful nexthop, then complain. */