1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Broadcom
7 #include <rte_hexdump.h>
9 #include "bcmfs_logs.h"
12 bcmfs_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
13 const void *buf, unsigned int len)
15 if (level > rte_log_get_global_level())
17 if (level > (uint32_t)(rte_log_get_level(logtype)))
20 rte_hexdump(rte_log_get_stream(), title, buf, len);
24 RTE_LOG_REGISTER_SUFFIX(bcmfs_conf_logtype, config, NOTICE)
25 RTE_LOG_REGISTER_SUFFIX(bcmfs_dp_logtype, fp, NOTICE)