numam-dpdk/drivers/net/igc/igc_logs.c
Jerin Jacob 9c99878aa1 log: introduce logtype register macro
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>
2020-07-03 15:52:51 +02:00

11 lines
262 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019-2020 Intel Corporation
*/
#include <rte_common.h>
#include "igc_logs.h"
RTE_LOG_REGISTER(igc_logtype_init, pmd.net.igc.init, INFO);
RTE_LOG_REGISTER(igc_logtype_driver, pmd.net.igc.driver, INFO);