net/mlx4: update link status upon probing with LSC
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_hugepage_info.c
index cdaa47b..7a21e8f 100644 (file)
@@ -205,7 +205,7 @@ clear_hugedir(const char * hugedir)
        /* open directory */
        dir = opendir(hugedir);
        if (!dir) {
-               RTE_LOG(INFO, EAL, "Unable to open hugepage directory %s\n",
+               RTE_LOG(ERR, EAL, "Unable to open hugepage directory %s\n",
                                hugedir);
                goto error;
        }
@@ -213,7 +213,7 @@ clear_hugedir(const char * hugedir)
 
        dirent = readdir(dir);
        if (!dirent) {
-               RTE_LOG(INFO, EAL, "Unable to read hugepage directory %s\n",
+               RTE_LOG(ERR, EAL, "Unable to read hugepage directory %s\n",
                                hugedir);
                goto error;
        }
@@ -253,7 +253,7 @@ error:
        if (dir)
                closedir(dir);
 
-       RTE_LOG(INFO, EAL, "Error while clearing hugepage dir: %s\n",
+       RTE_LOG(ERR, EAL, "Error while clearing hugepage dir: %s\n",
                strerror(errno));
 
        return -1;
@@ -283,9 +283,12 @@ eal_hugepage_info_init(void)
        struct dirent *dirent;
 
        dir = opendir(sys_dir_path);
-       if (dir == NULL)
-               rte_panic("Cannot open directory %s to read system hugepage "
-                         "info\n", sys_dir_path);
+       if (dir == NULL) {
+               RTE_LOG(ERR, EAL,
+                       "Cannot open directory %s to read system hugepage info\n",
+                       sys_dir_path);
+               return -1;
+       }
 
        for (dirent = readdir(dir); dirent != NULL; dirent = readdir(dir)) {
                struct hugepage_info *hpi;
@@ -308,7 +311,7 @@ eal_hugepage_info_init(void)
 
                        num_pages = get_num_hugepages(dirent->d_name);
                        if (num_pages > 0)
-                               RTE_LOG(INFO, EAL,
+                               RTE_LOG(NOTICE, EAL,
                                        "%" PRIu32 " hugepages of size "
                                        "%" PRIu64 " reserved, but no mounted "
                                        "hugetlbfs found for that size\n",