aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2016-11-07 21:39:25 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-16 16:29:42 -0200
commit43e6347f400d8bf8beff56a164c6a7e8c3d0ba5f (patch)
treeb9e9eb660190c55134d126f6c85256165334bc07 /drivers/media/platform
parent[media] exynos-gsc: cleanup m2m src and dst vb2 queues on STREAMOFF (diff)
downloadwireguard-linux-43e6347f400d8bf8beff56a164c6a7e8c3d0ba5f.tar.xz
wireguard-linux-43e6347f400d8bf8beff56a164c6a7e8c3d0ba5f.zip
[media] s5p-mfc: include buffer size in error message
Include buffer size in s5p_mfc_alloc_priv_buf() the error message when it fails to allocate the buffer. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_opr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c
index f0f5e8ce5416..99f65a92a6be 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c
@@ -45,7 +45,8 @@ int s5p_mfc_alloc_priv_buf(struct device *dev, dma_addr_t base,
b->virt = dma_alloc_coherent(dev, b->size, &b->dma, GFP_KERNEL);
if (!b->virt) {
- mfc_err("Allocating private buffer failed\n");
+ mfc_err("Allocating private buffer of size %zu failed\n",
+ b->size);
return -ENOMEM;
}