* Searches the input parameter for the least significant set bit
* (starting from zero).
* If a least significant 1 bit is found, its bit index is returned.
- * If the content of the input paramer is zero, then the content of the return
+ * If the content of the input parameter is zero, then the content of the return
* value is undefined.
* @param v
* input parameter, should not be zero.
* rte_eal_wait_lcore() for every lcore. The return values are
* ignored.
*
- * After a call to rte_eal_mp_wait_lcores(), the caller can assume
+ * After a call to rte_eal_mp_wait_lcore(), the caller can assume
* that all slave lcores are in a WAIT state.
*/
void rte_eal_mp_wait_lcore(void);
return 0;
if (num_pages == 0)
- RTE_LOG(ERR, EAL, "Error - no free hugepages available!\n");
+ RTE_LOG(WARNING, EAL, "No free hugepages reported in %s\n",
+ subdir);
return (int32_t)num_pages;
}
/* first, check if we have a mountpoint */
if (hpi->hugedir == NULL){
- RTE_LOG(INFO, EAL, "%u hugepages of size %llu reserved, "\
- "but no mounted hugetlbfs found for that size\n",
- (unsigned) get_num_hugepages(dirent->d_name),
- (unsigned long long)hpi->hugepage_sz);
+ int32_t num_pages;
+ if ((num_pages = get_num_hugepages(dirent->d_name)) > 0)
+ RTE_LOG(INFO, EAL, "%u hugepages of size %llu reserved, "\
+ "but no mounted hugetlbfs found for that size\n",
+ (unsigned)num_pages,
+ (unsigned long long)hpi->hugepage_sz);
} else {
/* try to obtain a writelock */
hpi->lock_descriptor = open(hpi->hugedir, O_RDONLY);
}
closedir(d);
if (endptr == NULL || *endptr!='\0' || endptr == e->d_name+prefix_len) {
- RTE_LOG(ERR, EAL, "Error reading numa node link "
+ RTE_LOG(WARNING, EAL, "Cannot read numa node link "
"for lcore %u - using physical package id instead\n",
lcore_id);