From patchwork Mon Nov 7 23:39:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9416239 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 47D636022E for ; Mon, 7 Nov 2016 23:41:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17E0C20008 for ; Mon, 7 Nov 2016 23:41:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B72828E92; Mon, 7 Nov 2016 23:41:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AA63B28E90 for ; Mon, 7 Nov 2016 23:41:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c3tWB-0007ZU-Gy; Mon, 07 Nov 2016 23:39:59 +0000 Received: from resqmta-po-07v.sys.comcast.net ([2001:558:fe16:19:96:114:154:166]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c3tW5-0007WD-Iu for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2016 23:39:54 +0000 Received: from resomta-ch2-14v.sys.comcast.net ([96.114.154.238]) by resqmta-po-07v.sys.comcast.net with SMTP id 3tVFcYTJKqbrL3tVicuIxJ; Mon, 07 Nov 2016 23:39:30 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-14v.sys.comcast.net with SMTP id 3tVgcWS5vpnHS3tVgcekRJ; Mon, 07 Nov 2016 23:39:30 +0000 Received: from localhost.localdomain (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id 1BC049F2D9; Mon, 7 Nov 2016 16:39:27 -0700 (MST) From: Shuah Khan To: kyungmin.park@samsung.com, kamil@wypas.org, jtp.park@samsung.com, a.hajda@samsung.com, mchehab@kernel.org Subject: [PATCH v2] media: s5p-mfc include buffer size in error message Date: Mon, 7 Nov 2016 16:39:25 -0700 Message-Id: <20161107233925.25070-1-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.9.3 X-CMAE-Envelope: MS4wfItTaMG/agn+A+w1beJov6BGCpo58NPMrQAS36wM5jQtEYsqnTf3EYN5fiEWPaR+0LLdhOiLncKxG0XjRat6hW3UFMe6HiNo8ECnz7GzxJ5bx05OIsi1 M0PafeZgVOGcQPOnBbpcK0og2r9htMTheoUkgrE97Rwj+n7Pwr6WajCcazkKV1vNr9Ry2VYp9s8w5+5JZAHL2REqOhykBs9qk9RF1zByk6sQoGf6ZPq9ex5W sMcINMoLcb2bgSR5XCBzFdFK6e81nimrICsXBueqNIZ8OzYc6NOkXbXPxxGanUQ6F4AW/UuT4sjO12KaC4sjJs21s1qHTs06YknBCNBd+E6rLjeNxc+1rxUV GYc4KI7UhOgmpVuMGHBlBW4Qbw+g22T6f97ItYlwKVefPMUgDYCGBpGQNX+mDAwIeZlxRzQO6FUFczUN6MFb+v49s94uL8+MRzGn4sbkXM/y0JevhYV3ktZs +tnnq9NKoLiWVBdB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161107_153953_725414_CCF52B1B X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Include buffer size in s5p_mfc_alloc_priv_buf() the error message when it fails to allocate the buffer. Signed-off-by: Shuah Khan --- 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; }