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: 9274211 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 EBCDF6022E for ; Wed, 10 Aug 2016 21:25:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA7AD283E6 for ; Wed, 10 Aug 2016 21:25:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF2392840C; Wed, 10 Aug 2016 21:25:58 +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 76696283E6 for ; Wed, 10 Aug 2016 21:25:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932458AbcHJSDo (ORCPT ); Wed, 10 Aug 2016 14:03:44 -0400 Received: from resqmta-po-01v.sys.comcast.net ([96.114.154.160]:46473 "EHLO resqmta-po-01v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751226AbcHJSDm (ORCPT ); Wed, 10 Aug 2016 14:03:42 -0400 Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-01v.sys.comcast.net with SMTP id XXKfbgcAMucHZXXKybODE4; 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 Cc: Shuah Khan , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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); }