Hi Tim,

<snip>

> +/* declared extern in header, for access from other .c files */ int
> +eventdev_dlb_log_level;
> +
> +RTE_INIT(evdev_dlb_init_log)
> +{
> +     eventdev_dlb_log_level = rte_log_register("pmd.event.dlb");
> +     if (eventdev_dlb_log_level >= 0)
> +             rte_log_set_level(eventdev_dlb_log_level, RTE_LOG_NOTICE);
> }

There's a new macro RTE_LOG_REGISTER() that's designed to replace this 
boilerplate code. Examples here: 
http://mails.dpdk.org/archives/dev/2020-July/172273.html

Thanks,
Gage

Reply via email to