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: 9276925 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 4BFFC60752 for ; Fri, 12 Aug 2016 13:14:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D691289E8 for ; Fri, 12 Aug 2016 13:14:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31FE6289EB; Fri, 12 Aug 2016 13:14:04 +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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C3E2289E8 for ; Fri, 12 Aug 2016 13:14:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 967D26EB57; Fri, 12 Aug 2016 13:13:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 150135 seconds by postgrey-1.35 at gabe; Wed, 10 Aug 2016 17:31:40 UTC Received: from resqmta-po-08v.sys.comcast.net (resqmta-po-08v.sys.comcast.net [96.114.154.167]) by gabe.freedesktop.org (Postfix) with ESMTPS id B63156E0A0 for ; Wed, 10 Aug 2016 17:31:40 +0000 (UTC) Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-08v.sys.comcast.net with SMTP id XXKfbeInw2dNjXXKybxnm2; 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-Mailman-Approved-At: Fri, 12 Aug 2016 13:13:55 +0000 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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); }