linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] media: s5p-mfc include buffer size in error message
@ 2016-11-07 23:39 Shuah Khan
  0 siblings, 0 replies; only message in thread
From: Shuah Khan @ 2016-11-07 23:39 UTC (permalink / raw)
  To: kyungmin.park, kamil, jtp.park, a.hajda, mchehab
  Cc: Shuah Khan, linux-arm-kernel, linux-media, linux-kernel

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>
---
Changes since v1:
 - Left debug message as is. v1 removed the debug message.

 drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c
index 1e72502..da4f52a 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;
 	}
 
-- 
2.7.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-07 23:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-07 23:39 [PATCH v2] media: s5p-mfc include buffer size in error message Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).