From 10bafbc606ee895937862b3d5d4945850b5f7e19 Mon Sep 17 00:00:00 2001 From: CMY Date: Wed, 26 Mar 2014 18:46:07 +0800 Subject: [PATCH] rk: ion: print the length of the buffer when the allocation fail --- drivers/staging/android/ion/ion_cma_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers/staging/android/ion/ion_cma_heap.c index bd606ca4eb80..6104bcd23298 100755 --- a/drivers/staging/android/ion/ion_cma_heap.c +++ b/drivers/staging/android/ion/ion_cma_heap.c @@ -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; } -- 2.34.1