Branch data Line data Source code
1 : : /* SPDX-License-Identifier: BSD-3-Clause 2 : : * Copyright(c) 2020 Broadcom 3 : : * All rights reserved. 4 : : */ 5 : : 6 : : #include <rte_log.h> 7 : : #include <rte_hexdump.h> 8 : : 9 : : #include "bcmfs_logs.h" 10 : : 11 : : int 12 : 0 : bcmfs_hexdump_log(uint32_t level, uint32_t logtype, const char *title, 13 : : const void *buf, unsigned int len) 14 : : { 15 [ # # ]: 0 : if (level > rte_log_get_global_level()) 16 : : return 0; 17 [ # # ]: 0 : if (level > (uint32_t)(rte_log_get_level(logtype))) 18 : : return 0; 19 : : 20 : 0 : rte_hexdump(rte_log_get_stream(), title, buf, len); 21 : 0 : return 0; 22 : : } 23 : : 24 [ - + ]: 252 : RTE_LOG_REGISTER_SUFFIX(bcmfs_conf_logtype, config, NOTICE) 25 [ - + ]: 252 : RTE_LOG_REGISTER_SUFFIX(bcmfs_dp_logtype, fp, NOTICE)