[dpdk-dev] [PATCH 01/13] eal/log: introduce log register macro
David Marchand
david.marchand at redhat.com
Wed Jun 17 12:02:25 CEST 2020
On Wed, Jun 17, 2020 at 8:30 AM <jerinj at marvell.com> wrote:
>
> From: Jerin Jacob <jerinj at marvell.com>
>
> Introducing the RTE_LOG_REGISTER macro to avoid the code duplication
> in the log registration process.
>
> It is a wrapper macro for declaring the logtype, register the log and sets
Having the logtype variable declared as part of the macro will force
us to have global symbols (for the cases where it is needed).
I'd rather leave the declaration to the caller, and only handle the
registering part in this macro.
> it's level in the constructor context.
>
--
David Marchand
More information about the dev
mailing list