rk: ion: print the length of the buffer when the allocation fail
authorCMY <cmy@rock-chips.com>
Wed, 26 Mar 2014 10:46:07 +0000 (18:46 +0800)
committerCMY <cmy@rock-chips.com>
Wed, 26 Mar 2014 10:46:47 +0000 (18:46 +0800)
drivers/staging/android/ion/ion_cma_heap.c

index bd606ca4eb801498c0d094613629faca10526821..6104bcd23298334e8418a9bad567ca484900b71c 100755 (executable)
@@ -93,7 +93,7 @@ static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer,
        }
 
        if (!info->cpu_addr) {
-               dev_err(dev, "Fail to allocate buffer\n");
+               dev_err(dev, "Fail to allocate(%lx) buffer\n", len);
                goto err;
        }