log: introduce logtype register macro
authorJerin Jacob <jerinj@marvell.com>
Wed, 1 Jul 2020 12:33:35 +0000 (18:03 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 3 Jul 2020 13:52:51 +0000 (15:52 +0200)
Introduce the RTE_LOG_REGISTER macro to avoid the code duplication
in the logtype registration process.

It is a wrapper macro for declaring the logtype, registering it and
setting its level in the constructor context.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Sachin Saxena <sachin.saxena@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>

No differences found