aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/elog.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-10-06 14:08:16 -0400
committerDave Barach <dave@barachs.net>2020-10-06 15:22:48 -0400
commitab1a50cf7407e31097b550226c2b6954d6371bea (patch)
tree5c9c9b097aee611d1b1c8728d388e5392d1bdd32 /src/vppinfra/elog.c
parentc0b195450b31f7092834c0f14a27ca929faf8bca (diff)
misc: add xxx_not_inline
vlib_main_t *vlib_get_main_not_inline(void) vlib_thread_main_t *vlib_get_thread_main_not_inline(void) elog_main_t *vlib_get_elog_main_not_inline() Type: refactor Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I6de306d567283ad28ef34c9be0cf27452aecbf6c
Diffstat (limited to 'src/vppinfra/elog.c')
-rw-r--r--src/vppinfra/elog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vppinfra/elog.c b/src/vppinfra/elog.c
index cd4d89583cb..089c2509f71 100644
--- a/src/vppinfra/elog.c
+++ b/src/vppinfra/elog.c
@@ -614,8 +614,8 @@ elog_string (elog_main_t * em, char *fmt, ...)
elog_event_t *
elog_get_events (elog_main_t * em)
{
- if (!em->events)
- em->events = elog_peek_events (em);
+ vec_reset_length (em->events);
+ em->events = elog_peek_events (em);
return em->events;
}