drm: Pretty print pixel format in drm_fb_get_bpp_depth() and format_check()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 15 Oct 2013 18:06:51 +0000 (21:06 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 03:29:34 +0000 (13:29 +1000)
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@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found