1e4f0e215SChaoyong He /* SPDX-License-Identifier: BSD-3-Clause 2e4f0e215SChaoyong He * Copyright (c) 2023 Corigine, Inc. 3e4f0e215SChaoyong He * All rights reserved. 4e4f0e215SChaoyong He */ 5e4f0e215SChaoyong He 6e4f0e215SChaoyong He #ifndef __NFP_VDPA_LOG_H__ 7e4f0e215SChaoyong He #define __NFP_VDPA_LOG_H__ 8e4f0e215SChaoyong He 9e4f0e215SChaoyong He #include <rte_log.h> 10e4f0e215SChaoyong He 11e4f0e215SChaoyong He extern int nfp_logtype_vdpa; 12*2b843cacSDavid Marchand #define RTE_LOGTYPE_NFP_VDPA nfp_logtype_vdpa 13*2b843cacSDavid Marchand #define DRV_VDPA_LOG(level, ...) \ 14*2b843cacSDavid Marchand RTE_LOG_LINE_PREFIX(level, NFP_VDPA, "%s(): ", __func__, __VA_ARGS__) 15e4f0e215SChaoyong He 16e4f0e215SChaoyong He extern int nfp_logtype_core; 17*2b843cacSDavid Marchand #define RTE_LOGTYPE_NFP_CORE nfp_logtype_core 18*2b843cacSDavid Marchand #define DRV_CORE_LOG(level, ...) \ 19*2b843cacSDavid Marchand RTE_LOG_LINE_PREFIX(level, NFP_CORE, "%s(): ", __func__, __VA_ARGS__) 20e4f0e215SChaoyong He 21e4f0e215SChaoyong He #endif /* __NFP_VDPA_LOG_H__ */ 22