From patchwork Tue Oct 18 00:43:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9380955 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 C75E060487 for ; Tue, 18 Oct 2016 00:45:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C42A428CF5 for ; Tue, 18 Oct 2016 00:45:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8CBD28CFD; Tue, 18 Oct 2016 00:45:22 +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 36FE628CF5 for ; Tue, 18 Oct 2016 00:45:22 +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 1bwIVq-0003Wi-OM; Tue, 18 Oct 2016 00:44:14 +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 1bwIVi-0003M5-Cf for linux-arm-kernel@lists.infradead.org; Tue, 18 Oct 2016 00:44:08 +0000 Received: from resomta-po-09v.sys.comcast.net ([96.114.154.233]) by resqmta-po-07v.sys.comcast.net with SMTP id wIVAb2ZElqbrLwIVKb54lv; Tue, 18 Oct 2016 00:43:42 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-09v.sys.comcast.net with SMTP id wIVIb7hZSobx1wIVIbpNZ5; Tue, 18 Oct 2016 00:43:41 +0000 Received: from localhost.localdomain (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id D00BE9F30D; Mon, 17 Oct 2016 18:43:39 -0600 (MDT) From: Shuah Khan To: kyungmin.park@samsung.com, kamil@wypas.org, jtp.park@samsung.com, a.hajda@samsung.com, mchehab@kernel.org Subject: [PATCH] media: s5p-mfc include buffer size in error message Date: Mon, 17 Oct 2016 18:43:37 -0600 Message-Id: <20161018004337.26831-1-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.9.3 X-CMAE-Envelope: MS4wfHS+RvNuYhsBLYU2pa7xQb7GPX6p3WhSo6TTLs8X17ecbR0b/c90ZjqhSQXwXvfY2XzCcJP4N5JmjvSSgy/+DLzWazZ1Ug4O7aAehMIZvzeK6T82mnlK hQaCyofppegNF7/0PCTeb7qq2IL8qI6MRqCexqeQRitl2aSvun30U2rd8pUJC9xN96K0i83qVFlZ0XHUtn+Bpw/Pf0FyVf8FwPnd/Td8eoiJtv0r7fmDk9jz ZlWZ7ltf5/LHCIIAZ8HGYVkR2qek10cCjRXgPONK9AG9yecqsxMcd2k0aquB8yYnQXU6ZXqVNaReG8CSw1ceIpb1uw8pd2IXhNdTEbOuq/2XaTzMJir3PWwD c6eOXD/twIjLnzIji97fUun1wSgIwtsHlxJ86sBExurZVadkEayMT2ou2+ARQ4fZnzd55c4G9cJJYaEcaTlwqaL6I9cNx3cZeHd9z839IVz+NlwS+wM5B9f8 hIk8Zt9zsDyo4KQp X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161017_174406_627456_366011BF X-CRM114-Status: UNSURE ( 7.78 ) 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. Remove the debug message that does the same. Signed-off-by: Shuah Khan --- drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c index 1e72502..eee16a1 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c @@ -40,12 +40,11 @@ void s5p_mfc_init_regs(struct s5p_mfc_dev *dev) int s5p_mfc_alloc_priv_buf(struct device *dev, dma_addr_t base, struct s5p_mfc_priv_buf *b) { - mfc_debug(3, "Allocating priv: %zu\n", b->size); - 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; }