[PATCH v13 1/6] memarea: introduce memarea library
Stephen Hemminger
stephen at networkplumber.org
Thu Feb 9 01:04:21 CET 2023
On Wed, 8 Feb 2023 08:24:47 +0000
Chengwen Feng <fengchengwen at huawei.com> wrote:
> +RTE_LOG_REGISTER_DEFAULT(rte_memarea_logtype, INFO);
> +#define RTE_MEMAREA_LOG(level, ...) \
> + rte_log(RTE_LOG_ ## level, rte_memarea_logtype, RTE_FMT("memarea: " \
> + RTE_FMT_HEAD(__VA_ARGS__,) "\n", RTE_FMT_TAIL(__VA_ARGS__,)))
> +
For me it is easier to read as:
#define RTE_MEMAREA_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, rte_memarea_logtype, \
"memarea: " fmt "\n", ## args)
A common convention is to use "%s: " and __func__.
More information about the dev
mailing list