[PATCH v9 2/9] net/zxdh: add logging implementation
Ferruh Yigit
ferruh.yigit at amd.com
Sat Nov 2 02:02:27 CET 2024
On 11/1/2024 6:21 AM, Junlong Wang wrote:
> Add zxdh logging implementation.
>
> Signed-off-by: Junlong Wang <wang.junlong1 at zte.com.cn>
>
<...>
> +extern int zxdh_logtype_init;
> +#define RTE_LOGTYPE_ZXDH_INIT zxdh_logtype_init
> +#define PMD_INIT_LOG(level, ...) \
> + RTE_LOG_LINE_PREFIX(level, ZXDH_INIT, "offload_zxdh %s(): ", \
>
Are you sure you want "offload_zxdh" prefix for each log, instead of
shorter 'zxdh' one?
> + __func__, __VA_ARGS__)
> +
> +extern int zxdh_logtype_driver;
> +#define RTE_LOGTYPE_ZXDH_DRIVER zxdh_logtype_driver
> +#define PMD_DRV_LOG(level, ...) \
> + RTE_LOG_LINE_PREFIX(level, ZXDH_DRIVER, "offload_zxdh %s(): ", \
>
All log types seems same prefix, which is OK, but just a reminder if you
want to distinguish them?
More information about the dev
mailing list