adcca66765
Signed-off-by: Matej Vido <vido@cesnet.cz>
23 lines
585 B
C
23 lines
585 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2018 CESNET
|
|
*/
|
|
|
|
#ifndef _SZEDATA2_LOGS_H_
|
|
#define _SZEDATA2_LOGS_H_
|
|
|
|
#include <rte_log.h>
|
|
|
|
extern int szedata2_logtype_init;
|
|
#define PMD_INIT_LOG(level, fmt, args...) \
|
|
rte_log(RTE_LOG_ ## level, szedata2_logtype_init, \
|
|
"%s(): " fmt "\n", __func__, ## args)
|
|
|
|
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
|
|
|
|
extern int szedata2_logtype_driver;
|
|
#define PMD_DRV_LOG(level, fmt, args...) \
|
|
rte_log(RTE_LOG_ ## level, szedata2_logtype_driver, \
|
|
"%s(): " fmt "\n", __func__, ## args)
|
|
|
|
#endif /* _SZEDATA2_LOGS_H_ */
|