From: CMY Date: Wed, 26 Mar 2014 10:46:07 +0000 (+0800) Subject: rk: ion: print the length of the buffer when the allocation fail X-Git-Tag: firefly_0821_release~5800 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=10bafbc606ee895937862b3d5d4945850b5f7e19;p=firefly-linux-kernel-4.4.55.git rk: ion: print the length of the buffer when the allocation fail --- 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; }