Branch data Line data Source code
1 : : /* SPDX-License-Identifier: BSD-3-Clause 2 : : * Copyright(c) 2018 Intel Corporation 3 : : */ 4 : : 5 : : #include <rte_log.h> 6 : : #include <rte_hexdump.h> 7 : : 8 : : #include "qat_logs.h" 9 : : 10 : : int 11 : 0 : qat_hexdump_log(uint32_t level, uint32_t logtype, const char *title, 12 : : const void *buf, unsigned int len) 13 : : { 14 [ # # ]: 0 : if (rte_log_can_log(logtype, level)) 15 : 0 : rte_hexdump(rte_log_get_stream(), title, buf, len); 16 : : 17 : 0 : return 0; 18 : : } 19 : : 20 [ - + ]: 251 : RTE_LOG_REGISTER(qat_gen_logtype, pmd.qat.general, NOTICE); 21 [ - + ]: 251 : RTE_LOG_REGISTER(qat_dp_logtype, pmd.qat.dp, NOTICE);