diff options
| author | Olivier Dugeon <olivier.dugeon@orange.com> | 2017-06-21 18:22:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-21 18:22:52 +0200 |
| commit | 8ea37652c714edcd913d5dc02a0bfc5968fdc45e (patch) | |
| tree | 86e8e62d8b64dbe4d1bf7e5a96b0572e149f4832 /ospfclient/ospfclient.c | |
| parent | 2ca02077216cc8d8bde6b6da279f9fd03e0ac04a (diff) | |
| parent | 56b40679304df9c4bfcfd5764af24f1d35b86142 (diff) | |
Merge pull request #745 from qlyoung/fix-lookup
*: simplify log message lookup
Diffstat (limited to 'ospfclient/ospfclient.c')
| -rw-r--r-- | ospfclient/ospfclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfclient/ospfclient.c b/ospfclient/ospfclient.c index d8d0fe8d47..affcbc9d6a 100644 --- a/ospfclient/ospfclient.c +++ b/ospfclient/ospfclient.c @@ -267,7 +267,7 @@ ism_change_callback (struct in_addr ifaddr, struct in_addr area_id, { printf ("ism_change: ifaddr: %s ", inet_ntoa (ifaddr)); printf ("area_id: %s\n", inet_ntoa (area_id)); - printf ("state: %d [%s]\n", state, LOOKUP (ospf_ism_state_msg, state)); + printf ("state: %d [%s]\n", state, lookup_msg(ospf_ism_state_msg, state, NULL)); } static void @@ -277,7 +277,7 @@ nsm_change_callback (struct in_addr ifaddr, struct in_addr nbraddr, printf ("nsm_change: ifaddr: %s ", inet_ntoa (ifaddr)); printf ("nbraddr: %s\n", inet_ntoa (nbraddr)); printf ("router_id: %s\n", inet_ntoa (router_id)); - printf ("state: %d [%s]\n", state, LOOKUP (ospf_nsm_state_msg, state)); + printf ("state: %d [%s]\n", state, lookup_msg(ospf_nsm_state_msg, state, NULL)); } |
