1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (c) 2023 Corigine, Inc. 3 * All rights reserved. 4 */ 5 6 #ifndef __NFP_COMMON_LOG_H__ 7 #define __NFP_COMMON_LOG_H__ 8 9 #include <rte_log.h> 10 11 extern int nfp_logtype_common; 12 #define RTE_LOGTYPE_NFP_COMMON nfp_logtype_common 13 #define PMD_DRV_LOG(level, ...) \ 14 RTE_LOG_LINE_PREFIX(level, NFP_COMMON, "%s(): ", __func__, __VA_ARGS__) 15 16 #endif/* __NFP_COMMON_LOG_H__ */ 17