eal: fix typo in comment of vector function
[dpdk.git] / lib / librte_eal / common / eal_common_memalloc.c
index 3005ef9..3712719 100644 (file)
@@ -77,7 +77,7 @@ eal_memalloc_is_contig(const struct rte_memseg_list *msl, void *start,
        const struct rte_memseg *ms;
 
        /* for IOVA_VA, it's always contiguous */
-       if (rte_eal_iova_mode() == RTE_IOVA_VA)
+       if (rte_eal_iova_mode() == RTE_IOVA_VA && !msl->external)
                return true;
 
        /* for legacy memory, it's always contiguous */
@@ -243,7 +243,7 @@ eal_memalloc_mem_event_notify(enum rte_mem_event event, const void *start,
        rte_rwlock_read_lock(&mem_event_rwlock);
 
        TAILQ_FOREACH(entry, &mem_event_callback_list, next) {
-               RTE_LOG(DEBUG, EAL, "Calling mem event callback '%s:%p'",
+               RTE_LOG(DEBUG, EAL, "Calling mem event callback '%s:%p'\n",
                        entry->name, entry->arg);
                entry->clb(event, start, len, entry->arg);
        }