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: 9416237 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 1AC576022E for ; Mon, 7 Nov 2016 23:39:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A7AA28E8B for ; Mon, 7 Nov 2016 23:39:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F30DE28E8E; Mon, 7 Nov 2016 23:39:50 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9956328E8B for ; Mon, 7 Nov 2016 23:39:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752380AbcKGXjc (ORCPT ); Mon, 7 Nov 2016 18:39:32 -0500 Received: from resqmta-po-05v.sys.comcast.net ([96.114.154.164]:56859 "EHLO resqmta-po-05v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348AbcKGXjc (ORCPT ); Mon, 7 Nov 2016 18:39:32 -0500 Received: from resomta-ch2-14v.sys.comcast.net ([96.114.154.238]) by resqmta-po-05v.sys.comcast.net with SMTP id 3tVRcJyghcEL13tVicPGVr; 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 Cc: Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.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 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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; }