mem: improve log message for too low memzone segments
authorArtur Trybula <arturx.trybula@intel.com>
Fri, 20 Dec 2019 15:08:39 +0000 (16:08 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 20 Jan 2020 17:52:52 +0000 (18:52 +0100)
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 <arturx.trybula@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_memzone.c

index 99b8d65..86f6136 100644 (file)
@@ -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;
        }