129cb31c9SChaoyong He /* SPDX-License-Identifier: BSD-3-Clause 229cb31c9SChaoyong He * Copyright (c) 2023 Corigine, Inc. 329cb31c9SChaoyong He * All rights reserved. 429cb31c9SChaoyong He */ 529cb31c9SChaoyong He 629cb31c9SChaoyong He #ifndef __NFP_COMMON_LOG_H__ 729cb31c9SChaoyong He #define __NFP_COMMON_LOG_H__ 829cb31c9SChaoyong He 929cb31c9SChaoyong He #include <rte_log.h> 1029cb31c9SChaoyong He 1129cb31c9SChaoyong He extern int nfp_logtype_common; 12*2b843cacSDavid Marchand #define RTE_LOGTYPE_NFP_COMMON nfp_logtype_common 13*2b843cacSDavid Marchand #define PMD_DRV_LOG(level, ...) \ 14*2b843cacSDavid Marchand RTE_LOG_LINE_PREFIX(level, NFP_COMMON, "%s(): ", __func__, __VA_ARGS__) 1529cb31c9SChaoyong He 1629cb31c9SChaoyong He #endif/* __NFP_COMMON_LOG_H__ */ 17