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: 9380947 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 E27D860487 for ; Tue, 18 Oct 2016 00:43:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFE1328CF5 for ; Tue, 18 Oct 2016 00:43:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D48BA28CFD; Tue, 18 Oct 2016 00:43:49 +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 F33C128CF6 for ; Tue, 18 Oct 2016 00:43:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965004AbcJRAnp (ORCPT ); Mon, 17 Oct 2016 20:43:45 -0400 Received: from resqmta-po-01v.sys.comcast.net ([96.114.154.160]:39283 "EHLO resqmta-po-01v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934990AbcJRAnn (ORCPT ); Mon, 17 Oct 2016 20:43:43 -0400 Received: from resomta-po-09v.sys.comcast.net ([96.114.154.233]) by resqmta-po-01v.sys.comcast.net with SMTP id wIVAbQqoGucHZwIVKb7mak; 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 Cc: Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.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 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. 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; }