diff options
author | Damjan Marion <damarion@cisco.com> | 2021-03-26 13:45:37 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2021-03-26 16:33:42 +0100 |
commit | f553a2cbbb8cca84ebf033335ebd2cd26dc19d69 (patch) | |
tree | 3705c2c0121769dff96a122cef13886d5f0e5205 /src/vnet | |
parent | 6ffb7c61899eb782416cbd2f117042a583f189f7 (diff) |
vlib: introduce vlib_get_elog_main()
Type: improvement
Change-Id: I73383eb15186021cd6527d112da8443a0082f129
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/ip6-nd/ip6_ra.c | 7 | ||||
-rw-r--r-- | src/vnet/session/session_cli.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/vnet/ip6-nd/ip6_ra.c b/src/vnet/ip6-nd/ip6_ra.c index a3d95eee9fb..547ecf31034 100644 --- a/src/vnet/ip6-nd/ip6_ra.c +++ b/src/vnet/ip6-nd/ip6_ra.c @@ -252,9 +252,10 @@ ip6_neighbor_syslog (vlib_main_t * vm, int priority, char *fmt, ...) { u32 s[2]; } *ed; - ed = ELOG_DATA (&vm->elog_main, e); - ed->s[0] = elog_string (&vm->elog_main, log_level_strings[priority]); - ed->s[1] = elog_string (&vm->elog_main, (char *) what); + ed = ELOG_DATA (vlib_get_elog_main (), e); + ed->s[0] = + elog_string (vlib_get_elog_main (), log_level_strings[priority]); + ed->s[1] = elog_string (vlib_get_elog_main (), (char *) what); } va_end (va); return; diff --git a/src/vnet/session/session_cli.c b/src/vnet/session/session_cli.c index 0d541748d9e..2ca9630996a 100644 --- a/src/vnet/session/session_cli.c +++ b/src/vnet/session/session_cli.c @@ -598,7 +598,7 @@ show_session_command_fn (vlib_main_t * vm, unformat_input_t * input, u8 *str = format (0, "%U", format_session, s, 3); if (do_elog && s->session_state != SESSION_STATE_LISTENING) { - elog_main_t *em = &vm->elog_main; + elog_main_t *em = &vlib_global_main.elog_main; transport_connection_t *tc; f64 dt; |