aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/elog.c9
-rw-r--r--src/vppinfra/elog.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/vppinfra/elog.c b/src/vppinfra/elog.c
index 62bd9797acc..cd4d89583cb 100644
--- a/src/vppinfra/elog.c
+++ b/src/vppinfra/elog.c
@@ -427,6 +427,15 @@ format_elog_track (u8 * s, va_list * args)
return s;
}
+char *
+format_one_elog_event (void *em_arg, void *ep_arg)
+{
+ elog_main_t *em = (elog_main_t *) em_arg;
+ elog_event_t *ep = (elog_event_t *) ep_arg;
+
+ return (char *) format (0, "%U", format_elog_event, em, ep);
+}
+
void
elog_time_now (elog_time_stamp_t * et)
{
diff --git a/src/vppinfra/elog.h b/src/vppinfra/elog.h
index ee63d5b491b..93ba4f5e8cc 100644
--- a/src/vppinfra/elog.h
+++ b/src/vppinfra/elog.h
@@ -562,6 +562,7 @@ elog_read_file (elog_main_t * em, char *clib_file)
}
clib_error_t *elog_read_file_not_inline (elog_main_t * em, char *clib_file);
+char *format_one_elog_event (void *em_arg, void *ep_arg);
#endif /* CLIB_UNIX */