9c99878aa1
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>
11 lines
262 B
C
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);
|