1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2015-2018 Intel Corporation
8 extern int qat_gen_logtype;
9 extern int qat_dp_logtype;
11 #define QAT_LOG(level, fmt, args...) \
12 rte_log(RTE_LOG_ ## level, qat_gen_logtype, \
13 "%s(): " fmt "\n", __func__, ## args)
15 #define QAT_DP_LOG(level, fmt, args...) \
16 rte_log(RTE_LOG_ ## level, qat_dp_logtype, \
17 "%s(): " fmt "\n", __func__, ## args)
19 #define QAT_DP_HEXDUMP_LOG(level, title, buf, len) \
20 qat_hexdump_log(RTE_LOG_ ## level, qat_dp_logtype, title, buf, len)
23 * qat_hexdump_log - Dump out memory in a special hex dump format.
25 * Dump out the message buffer in a special hex dump output format with
26 * characters printed for each line of 16 hex values. The message will be sent
27 * to the stream used by the rte_log infrastructure.
30 qat_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
31 const void *buf, unsigned int len);
33 #endif /* _QAT_LOGS_H_ */