summaryrefslogtreecommitdiffstats
path: root/src/vlib/log.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-09 16:10:54 +0100
committerMatthew Smith <mgsmith@netgate.com>2022-03-10 23:10:58 +0000
commit62d656ace95ea5002c6c5c8e2eddb2901d38ab6f (patch)
tree32c153965786615798343e92d20478e61f1eb2ce /src/vlib/log.c
parent85b285b9000b056213c871dd128733085f0a8f37 (diff)
vlib: init logging eearlier
Type: improvement Change-Id: I2eb5543aa470094d4c5ad420a2fcc9873b7808e1 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/log.c')
-rw-r--r--src/vlib/log.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vlib/log.c b/src/vlib/log.c
index 07561d98cf8..a7791e4fee5 100644
--- a/src/vlib/log.c
+++ b/src/vlib/log.c
@@ -366,8 +366,8 @@ format_vlib_log_level (u8 * s, va_list * args)
return format (s, "%s", t);
}
-static clib_error_t *
-vlib_log_init (vlib_main_t * vm)
+clib_error_t *
+vlib_log_init (vlib_main_t *vm)
{
vlib_log_main_t *lm = &log_main;
vlib_log_class_registration_t *r = lm->registrations;
@@ -396,9 +396,6 @@ vlib_log_init (vlib_main_t * vm)
return 0;
}
-VLIB_INIT_FUNCTION (vlib_log_init);
-
-
static clib_error_t *
show_log (vlib_main_t * vm,
unformat_input_t * input, vlib_cli_command_t * cmd)