From ec40fe669f1dbb9a869a6c6225f13f848f2dbc60 Mon Sep 17 00:00:00 2001 From: Artur Trybula Date: Fri, 20 Dec 2019 16:08:39 +0100 Subject: [PATCH] mem: improve log message for too low memzone segments In case of too low number of memzone segments user notification was misleading. This patch improves the description by providing better explanation about the cause. Signed-off-by: Artur Trybula Acked-by: Anatoly Burakov --- lib/librte_eal/common/eal_common_memzone.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/common/eal_common_memzone.c index 99b8d6531d..86f61369b3 100644 --- a/lib/librte_eal/common/eal_common_memzone.c +++ b/lib/librte_eal/common/eal_common_memzone.c @@ -71,7 +71,9 @@ memzone_reserve_aligned_thread_unsafe(const char *name, size_t len, /* no more room in config */ if (arr->count >= arr->len) { - RTE_LOG(ERR, EAL, "%s(): No more room in config\n", __func__); + RTE_LOG(ERR, EAL, + "%s(): Number of requested memzone segments exceeds RTE_MAX_MEMZONE\n", + __func__); rte_errno = ENOSPC; return NULL; } -- 2.20.1