--- alloc.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/alloc.c b/alloc.c index 750b2cb..f231f2c 100644 --- a/alloc.c +++ b/alloc.c @@ -35,7 +35,7 @@ static void *fallback_base_pages(size_t len, ghp_t flags) { int fd; void *buf; - DEBUG("get_huge_pages: Falling back to base pages\n"); + INFO("get_huge_pages: Falling back to base pages\n"); /* * Map /dev/zero instead of MAP_ANONYMOUS avoid VMA mergings. Freeing @@ -46,7 +46,8 @@ static void *fallback_base_pages(size_t len, ghp_t flags) */ fd = open("/dev/zero", O_RDWR); if (fd == -1) { - ERROR("get_huge_pages: Failed to open /dev/zero for fallback"); + WARNING("get_huge_pages: Failed to open /dev/zero for " + "fallback"); return NULL; } @@ -83,7 +84,8 @@ void *get_huge_pages(size_t len, ghp_t flags) /* Create a file descriptor for the new region */ heap_fd = hugetlbfs_unlinked_fd(); if (heap_fd < 0) { - ERROR("Couldn't open hugetlbfs file for %zd-sized heap\n", len); + WARNING("Couldn't open hugetlbfs file for %zd-sized heap\n", + len); return NULL; } ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel