ia64/xen-unstable

changeset 6752:05f36d13e30c

Improve debug tracing from HYPERVISOR_memory_op().

Signed-off-by: Ian Pratt <ian@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Sep 12 12:10:43 2005 +0000 (2005-09-12)
parents 2c2c0b843f05
children 03b9919f655e
files xen/common/memory.c
line diff
     1.1 --- a/xen/common/memory.c	Mon Sep 12 10:54:30 2005 +0000
     1.2 +++ b/xen/common/memory.c	Mon Sep 12 12:10:43 2005 +0000
     1.3 @@ -29,7 +29,7 @@ increase_reservation(
     1.4      int           *preempted)
     1.5  {
     1.6      struct pfn_info *page;
     1.7 -    unsigned long    i;
     1.8 +    unsigned int     i;
     1.9  
    1.10      if ( (extent_list != NULL) &&
    1.11           !array_access_ok(extent_list, nr_extents, sizeof(*extent_list)) )
    1.12 @@ -37,7 +37,7 @@ increase_reservation(
    1.13  
    1.14      if ( (extent_order != 0) && !IS_CAPABLE_PHYSDEV(current->domain) )
    1.15      {
    1.16 -        DPRINTK("Only I/O-capable domains may allocate > order-0 memory.\n");
    1.17 +        DPRINTK("Only I/O-capable domains may allocate multi-page extents.\n");
    1.18          return 0;
    1.19      }
    1.20  
    1.21 @@ -52,8 +52,9 @@ increase_reservation(
    1.22          if ( unlikely((page = alloc_domheap_pages(
    1.23              d, extent_order, flags)) == NULL) )
    1.24          {
    1.25 -            DPRINTK("Could not allocate order=%d extent: id=%d flags=%x\n",
    1.26 -                    extent_order, d->domain_id, flags);
    1.27 +            DPRINTK("Could not allocate order=%d extent: "
    1.28 +                    "id=%d flags=%x (%d of %d)\n",
    1.29 +                    extent_order, d->domain_id, flags, i, nr_extents);
    1.30              return i;
    1.31          }
    1.32