X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Feal%2Fcommon%2Feal_common_memory.c;h=688dc615d74bed23fe88c8f4c292810196e90388;hb=ec487c189686ee9b3b7551d3aca138cec3f91e74;hp=616db5ce3174506f2c44a8fc247eb2234728e88e;hpb=e6732d0d6e26e37e2e0c22050b350bdd7df34009;p=dpdk.git diff --git a/lib/eal/common/eal_common_memory.c b/lib/eal/common/eal_common_memory.c index 616db5ce31..688dc615d7 100644 --- a/lib/eal/common/eal_common_memory.c +++ b/lib/eal/common/eal_common_memory.c @@ -2,16 +2,12 @@ * Copyright(c) 2010-2014 Intel Corporation */ -#include #include #include #include #include -#include #include -#include #include -#include #include #include @@ -143,9 +139,19 @@ eal_get_virtual_area(void *requested_addr, size_t *size, return NULL; } else if (requested_addr != NULL && addr_is_hint && aligned_addr != requested_addr) { - RTE_LOG(WARNING, EAL, "WARNING! Base virtual address hint (%p != %p) not respected!\n", - requested_addr, aligned_addr); - RTE_LOG(WARNING, EAL, " This may cause issues with mapping memory into secondary processes\n"); + /* + * demote this warning to debug if we did not explicitly request + * a base virtual address. + */ + if (internal_conf->base_virtaddr != 0) { + RTE_LOG(WARNING, EAL, "WARNING! Base virtual address hint (%p != %p) not respected!\n", + requested_addr, aligned_addr); + RTE_LOG(WARNING, EAL, " This may cause issues with mapping memory into secondary processes\n"); + } else { + RTE_LOG(DEBUG, EAL, "WARNING! Base virtual address hint (%p != %p) not respected!\n", + requested_addr, aligned_addr); + RTE_LOG(DEBUG, EAL, " This may cause issues with mapping memory into secondary processes\n"); + } } else if (next_baseaddr != NULL) { next_baseaddr = RTE_PTR_ADD(aligned_addr, *size); }