f-stack/dpdk/drivers/crypto/dpaa2_sec/dpaa2_sec_logs.h

43 lines
1.2 KiB
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
2017-04-21 10:43:26 +00:00
*
* Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
2019-06-25 11:12:58 +00:00
* Copyright 2016 NXP
2017-04-21 10:43:26 +00:00
*
*/
#ifndef _DPAA2_SEC_LOGS_H_
#define _DPAA2_SEC_LOGS_H_
2017-04-21 10:43:26 +00:00
2019-06-25 11:12:58 +00:00
extern int dpaa2_logtype_sec;
#define DPAA2_SEC_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, dpaa2_logtype_sec, "dpaa2_sec: " \
fmt "\n", ##args)
#define DPAA2_SEC_DEBUG(fmt, args...) \
rte_log(RTE_LOG_DEBUG, dpaa2_logtype_sec, "dpaa2_sec: %s(): " \
fmt "\n", __func__, ##args)
2019-06-25 11:12:58 +00:00
#define PMD_INIT_FUNC_TRACE() DPAA2_SEC_DEBUG(">>")
2017-04-21 10:43:26 +00:00
2019-06-25 11:12:58 +00:00
#define DPAA2_SEC_INFO(fmt, args...) \
DPAA2_SEC_LOG(INFO, fmt, ## args)
#define DPAA2_SEC_ERR(fmt, args...) \
DPAA2_SEC_LOG(ERR, fmt, ## args)
#define DPAA2_SEC_WARN(fmt, args...) \
DPAA2_SEC_LOG(WARNING, fmt, ## args)
2017-04-21 10:43:26 +00:00
2019-06-25 11:12:58 +00:00
/* DP Logs, toggled out at compile time if level lower than current level */
#define DPAA2_SEC_DP_LOG(level, fmt, args...) \
RTE_LOG_DP(level, PMD, fmt, ## args)
2017-04-21 10:43:26 +00:00
2019-06-25 11:12:58 +00:00
#define DPAA2_SEC_DP_DEBUG(fmt, args...) \
DPAA2_SEC_DP_LOG(DEBUG, fmt, ## args)
#define DPAA2_SEC_DP_INFO(fmt, args...) \
DPAA2_SEC_DP_LOG(INFO, fmt, ## args)
#define DPAA2_SEC_DP_WARN(fmt, args...) \
DPAA2_SEC_DP_LOG(WARNING, fmt, ## args)
2017-04-21 10:43:26 +00:00
#endif /* _DPAA2_SEC_LOGS_H_ */