Branch data Line data Source code
1 : : /* SPDX-License-Identifier: BSD-3-Clause 2 : : * Copyright(c) 2024 ZTE Corporation 3 : : */ 4 : : 5 : : #include <rte_hexdump.h> 6 : : 7 : : #include "zsda_logs.h" 8 : : 9 : : int 10 : 0 : zsda_hexdump_log(uint32_t level, uint32_t logtype, const char *title, 11 : : const void *buf, unsigned int len) 12 : : { 13 [ # # ]: 0 : if (rte_log_can_log(logtype, level)) 14 : 0 : rte_hexdump(rte_log_get_stream(), title, buf, len); 15 : : 16 : 0 : return 0; 17 : : } 18 : : 19 [ - + ]: 252 : RTE_LOG_REGISTER_SUFFIX(zsda_logtype_gen, gen, NOTICE);