vlib: rename vnet_log_get_class_data

It is a function in vlib, so no reason to mention vnet.

Type: fix
Fixes: bf179a91d8d224c64d08643a2bb52580f68ce96b

Change-Id: Ic5f601d94d88b667f7ce44a017a0e1d5b4db5da1
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
This commit is contained in:
Vratko Polak
2023-07-26 13:48:20 +02:00
parent 116392b174
commit e9ea7d5216
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ u8 *
format_vlib_log_class (u8 * s, va_list * args)
{
vlib_log_class_t ci = va_arg (*args, vlib_log_class_t);
vlib_log_class_data_t *c = vnet_log_get_class_data (ci);
vlib_log_class_data_t *c = vlib_log_get_class_data (ci);
vlib_log_subclass_data_t *sc = vlib_log_get_subclass_data (ci);
if (sc->name)

View File

@ -150,7 +150,7 @@ __vlib_add_log_registration_##x (void) \
__VA_ARGS__ vlib_log_class_registration_t x
static_always_inline vlib_log_class_data_t *
vnet_log_get_class_data (vlib_log_class_t ci)
vlib_log_get_class_data (vlib_log_class_t ci)
{
vlib_log_main_t *lm = &log_main;
return vec_elt_at_index (lm->classes, (ci >> 16));
@ -159,7 +159,7 @@ vnet_log_get_class_data (vlib_log_class_t ci)
static_always_inline vlib_log_subclass_data_t *
vlib_log_get_subclass_data (vlib_log_class_t ci)
{
vlib_log_class_data_t *c = vnet_log_get_class_data (ci);
vlib_log_class_data_t *c = vlib_log_get_class_data (ci);
return vec_elt_at_index (c->subclasses, (ci & 0xffff));
}