On Fri, Nov 14, 2008 at 09:00:50PM +0000, Adam Litke wrote:
> 
> ---
> 
>  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

This will collide with the recent changes to the allocator but it's a
trivial resolution.

> @@ -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;

Actually, is this is still an error? The library has encountered a
situation where it cannot recover and is depending on the caller to do
something useful.

>       }
>  
> @@ -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
> 

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab

-------------------------------------------------------------------------
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

Reply via email to