From: Damien Lespiau Subject: Re: [PATCH] drm: Pretty print pixel format in drm_fb_get_bpp_depth() and format_check() Date: Wed, 16 Oct 2013 00:35:25 +0100 Message-ID: <20131015233525.GA9835@strange.amr.corp.intel.com> References: <1381860411-21661-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 9FF85E5D18 for ; Tue, 15 Oct 2013 16:35:27 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1381860411-21661-1-git-send-email-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: ville.syrjala@linux.intel.com Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Tue, Oct 15, 2013 at 09:06:51PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > drm_fb_get_bpp_depth() likes to complain about unsupported pixel formats > but doesn't bother telling us what the format was. Also format_check() > just returns an error when it encouters an invalid format, leaving the > user scratching his head trying to figure out why addfb failed. Make > life a bit easier by using drm_get_format_name() in both places. > = > Signed-off-by: Ville Syrj=E4l=E4 Reviewed-by: Damien Lespiau -- = Damien