mem: fix config name in error logs
authorThomas Monjalon <thomas@monjalon.net>
Thu, 22 Oct 2020 17:36:21 +0000 (19:36 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Oct 2020 17:25:21 +0000 (19:25 +0200)
When introducing the new option CONFIG_RTE_MAX_MEM_MB_PER_TYPE,
some logs were referencing a wrong name: CONFIG_RTE_MAX_MEM_PER_TYPE.

Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/freebsd/eal_memory.c
lib/librte_eal/linux/eal_memory.c

index b8b337a..8d4b26b 100644 (file)
@@ -174,7 +174,7 @@ rte_eal_hugepage_init(void)
                        if (msl_idx == RTE_MAX_MEMSEG_LISTS) {
                                RTE_LOG(ERR, EAL, "Could not find space for memseg. Please increase %s and/or %s in configuration.\n",
                                        RTE_STR(CONFIG_RTE_MAX_MEMSEG_PER_TYPE),
-                                       RTE_STR(CONFIG_RTE_MAX_MEM_PER_TYPE));
+                                       RTE_STR(CONFIG_RTE_MAX_MEM_MB_PER_TYPE));
                                return -1;
                        }
                        arr = &msl->memseg_arr;
index 3e47efe..df0f07e 100644 (file)
@@ -714,7 +714,7 @@ remap_segment(struct hugepage_file *hugepages, int seg_start, int seg_end)
        if (msl_idx == RTE_MAX_MEMSEG_LISTS) {
                RTE_LOG(ERR, EAL, "Could not find space for memseg. Please increase %s and/or %s in configuration.\n",
                                RTE_STR(CONFIG_RTE_MAX_MEMSEG_PER_TYPE),
-                               RTE_STR(CONFIG_RTE_MAX_MEM_PER_TYPE));
+                               RTE_STR(CONFIG_RTE_MAX_MEM_MB_PER_TYPE));
                return -1;
        }