[PATCH] drm: Pretty print pixel format in drm_fb_get_bpp_depth() and format_check()

Damien Lespiau damien.lespiau at intel.com
Wed Oct 16 01:35:25 CEST 2013


On Tue, Oct 15, 2013 at 09:06:51PM +0300, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> 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älä <ville.syrjala at linux.intel.com>

Reviewed-by: Damien Lespiau <damien.lespiau at intel.com>

-- 
Damien


More information about the dri-devel mailing list