From patchwork Wed Aug 10 17:30:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9273249 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 EF110600CB for ; Wed, 10 Aug 2016 17:32:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E108127EE2 for ; Wed, 10 Aug 2016 17:32:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5D1A28407; Wed, 10 Aug 2016 17:32:38 +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 0801027EE2 for ; Wed, 10 Aug 2016 17:32:38 +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 1bXXLS-0007Y8-GU; Wed, 10 Aug 2016 17:31:10 +0000 Received: from resqmta-po-10v.sys.comcast.net ([2001:558:fe16:19:96:114:154:169]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bXXLK-0007RD-5r for linux-arm-kernel@lists.infradead.org; Wed, 10 Aug 2016 17:31:03 +0000 Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-10v.sys.comcast.net with SMTP id XXKybYP1uHqolXXKyb0sQN; Wed, 10 Aug 2016 17:30:40 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by comcast with SMTP id XXKwbv5bFr3KpXXKwbX2Bb; Wed, 10 Aug 2016 17:30:40 +0000 Received: from shuah-XPS-13-9350.sisa.samsung.com (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id A3A309F2FE; Wed, 10 Aug 2016 11:30:37 -0600 (MDT) From: Shuah Khan To: inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@linux.ie, kgene@kernel.org, k.kozlowski@samsung.com Subject: [PATCH] exynos-drm: Fix error messages to print flags and size Date: Wed, 10 Aug 2016 11:30:36 -0600 Message-Id: <1470850236-9101-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.7.4 X-CMAE-Envelope: MS4wfB+QxPO6xjKhEv8C1LxdJkciaa9UIVWjFgYI/AWaX5VsT+BDkW33MmPHu8Y4cR9CTllNHlNv14PYyY37qFgICnNLue+sm/+kDjya3QUj1Vk1GU2NMpc4 Qx1sj8AFpZXG026Dzc2E2ytm6dUUhApzzTgcq/ZdrCB5nAtcrqKgfXQnBTP5NLzUSoUPXc9pMo0te7/7OlSLTf0JGk2zpHV94m+nJbtnvEAeJXk08PjS1hEH 8qvS/+94OcUTc21iIuUtwS/UkAAHxee4zJRe48ebiXHh9unnCt4o2A+eVpE9qB54fF158muglljPe/7IwJM7fheLQqIKhCC0ZZZwXJz3V9p0M/zoTgACANwN T/cSOju2q/YeLo1KdTXvcfpMJfqWvD5+w3wYr9ZgAU/nJp3BSxl40XErYf6ILNxefx8Dp9vFoymBlmzG1jcHIjc5ZHouvcFobM33lIai1eaJ6OGh+cbMUvF9 M6SUYwXrItGQCQJKoBB8tpQAx1+HJsq1KkOvhpRca8/Eos+gU6rD+HZKmhgDIIbuApWRBM97MQd95IiDjVUdLN80BrE4tM1bJPNRQjOprkhZHNw1gXS8eFfk 8XGYPXCpj4fj6qaTpnhucCat X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160810_103102_441387_20D25A92 X-CRM114-Status: UNSURE ( 6.98 ) 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-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Shuah Khan , dri-devel@lists.freedesktop.org, linux-kernel@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 Fix exynos_drm_gem_create() error messages to include flags and size when flags and size are invalid. Signed-off-by: Shuah Khan Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index cdf9f1a..4c4cb0e 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -231,12 +231,12 @@ struct exynos_drm_gem *exynos_drm_gem_create(struct drm_device *dev, int ret; if (flags & ~(EXYNOS_BO_MASK)) { - DRM_ERROR("invalid flags.\n"); + DRM_ERROR("invalid GEM buffer flags: %u\n", flags); return ERR_PTR(-EINVAL); } if (!size) { - DRM_ERROR("invalid size.\n"); + DRM_ERROR("invalid GEM buffer size: %lu\n", size); return ERR_PTR(-EINVAL); }