Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1516662 > unrolled thread

[PATCH v2] media: s5p-mfc include buffer size in error message

Started byShuah Khan <shuahkh@osg.samsung.com>
First post2016-11-08 00:40 +0100
Last post2016-11-08 00:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] media: s5p-mfc include buffer size in error message Shuah Khan <shuahkh@osg.samsung.com> - 2016-11-08 00:40 +0100

#1516662 — [PATCH v2] media: s5p-mfc include buffer size in error message

FromShuah Khan <shuahkh@osg.samsung.com>
Date2016-11-08 00:40 +0100
Subject[PATCH v2] media: s5p-mfc include buffer size in error message
Message-ID<sB1Ga-1xZ-11@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web