1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
6 #include <rte_hexdump.h>
14 qat_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
15 const void *buf, unsigned int len)
17 if (rte_log_can_log(logtype, level))
18 rte_hexdump(rte_log_get_stream(), title, buf, len);
23 RTE_INIT(qat_pci_init_log)
25 /* Non-data-path logging for pci device and all services */
26 qat_gen_logtype = rte_log_register("pmd.qat_general");
27 if (qat_gen_logtype >= 0)
28 rte_log_set_level(qat_gen_logtype, RTE_LOG_NOTICE);
30 /* data-path logging for all services */
31 qat_dp_logtype = rte_log_register("pmd.qat_dp");
32 if (qat_dp_logtype >= 0)
33 rte_log_set_level(qat_dp_logtype, RTE_LOG_NOTICE);